mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
trash api update
This commit is contained in:
@@ -44,7 +44,7 @@ class TrashTest extends TestCase
|
||||
'type' => 'folder',
|
||||
],
|
||||
],
|
||||
])->assertStatus(204);
|
||||
])->assertStatus(200);
|
||||
|
||||
$this->assertDatabaseHas('files', [
|
||||
'deleted_at' => null,
|
||||
@@ -100,7 +100,7 @@ class TrashTest extends TestCase
|
||||
])->assertStatus(204);
|
||||
|
||||
$this->deleteJson('/api/trash/dump')
|
||||
->assertStatus(204);
|
||||
->assertStatus(200);
|
||||
|
||||
$this->assertDatabaseMissing('files', [
|
||||
'id' => $file->id,
|
||||
@@ -112,7 +112,9 @@ class TrashTest extends TestCase
|
||||
|
||||
$disk = Storage::disk('local');
|
||||
|
||||
$thumbnail_sizes = collect(config('vuefilemanager.image_sizes'))->collapse()->all();
|
||||
$thumbnail_sizes = collect(config('vuefilemanager.image_sizes'))
|
||||
->collapse()
|
||||
->all();
|
||||
|
||||
$disk->assertMissing(
|
||||
"files/$user->id/fake-image.jpg"
|
||||
|
||||
Reference in New Issue
Block a user