new test for folders upload

This commit is contained in:
Milos Holba
2021-08-18 18:50:32 +02:00
parent 09dfaaa34a
commit 4e3e63ba00
11 changed files with 407 additions and 218 deletions

View File

@@ -327,6 +327,7 @@ class VisitorManipulatingTest extends TestCase
->post("/api/editor/upload/$share->token", [
'filename' => $file->name,
'file' => $file,
'path' => '/' . $file->name,
'folder_id' => $folder->id,
'is_last' => 'true',
])->assertStatus(201);
@@ -337,6 +338,7 @@ class VisitorManipulatingTest extends TestCase
$this->postJson("/api/editor/upload/$share->token", [
'filename' => $file->name,
'file' => $file,
'path' => '/' . $file->name,
'folder_id' => $folder->id,
'is_last' => 'true',
])->assertStatus(201);