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

@@ -33,6 +33,7 @@ class UserZippingTest extends TestCase
$this->postJson('/api/upload', [
'filename' => $file->name,
'file' => $file,
'path' => '/' . $file->name,
'folder_id' => $folder->id,
'is_last' => 'true',
])->assertStatus(201);
@@ -46,6 +47,7 @@ class UserZippingTest extends TestCase
$this->postJson('/api/upload', [
'filename' => $file->name,
'file' => $file,
'path' => '/' . $file->name,
'folder_id' => null,
'is_last' => 'true',
])->assertStatus(201);
@@ -85,6 +87,7 @@ class UserZippingTest extends TestCase
$this->postJson('/api/upload', [
'filename' => $file->name,
'file' => $file,
'path' => '/' . $file->name,
'folder_id' => $folder->id,
'is_last' => 'true',
])->assertStatus(201);