mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
api refactoring
This commit is contained in:
@@ -74,12 +74,11 @@ class TrashTest extends TestCase
|
||||
$image = UploadedFile::fake()
|
||||
->image('fake-image.jpg');
|
||||
|
||||
$this->postJson('/api/upload', [
|
||||
'name' => $image->name,
|
||||
'file' => $image,
|
||||
'parent_id' => null,
|
||||
'path' => '/' . $image->name,
|
||||
'is_last' => 'true',
|
||||
$this->postJson('/api/upload/chunks', [
|
||||
'name' => $image->name,
|
||||
'chunk' => $image,
|
||||
'is_last_chunk' => 1,
|
||||
'extension' => 'jpg',
|
||||
])->assertStatus(201);
|
||||
|
||||
$file = File::first();
|
||||
|
||||
Reference in New Issue
Block a user