added it_zip_folder_with_content_within_and_download test

This commit is contained in:
Peter Papp
2021-03-02 16:43:32 +01:00
parent 4ab716bf9c
commit 33d6d1cd60
5 changed files with 71 additions and 27 deletions

View File

@@ -257,14 +257,11 @@ class FileTest extends TestCase
])->assertStatus(204);
$file_ids
->each(function ($id) {
->each(function ($id, $index) use ($user) {
$this->assertDatabaseMissing('files', [
'id' => $id,
]);
});
collect([0, 1])
->each(function ($index) use ($user) {
Storage::disk('local')
->assertMissing(
@@ -302,7 +299,7 @@ class FileTest extends TestCase
$file_ids = File::all()->pluck('id');
$this->postJson("/api/zip", [
$this->postJson("/api/zip/files", [
'items' => $file_ids,
])->assertStatus(201);