- gate implementation

- protected shared view fix
This commit is contained in:
Čarodej
2021-09-24 10:52:19 +02:00
parent d40108f6a9
commit 19cc01131b
84 changed files with 876 additions and 406 deletions

View File

@@ -33,7 +33,7 @@ class UserZippingTest extends TestCase
$this->postJson('/api/upload', [
'filename' => $file->name,
'file' => $file,
'folder_id' => $folder->id,
'parent_id' => $folder->id,
'is_last' => 'true',
])->assertStatus(201);
});
@@ -46,13 +46,13 @@ class UserZippingTest extends TestCase
$this->postJson('/api/upload', [
'filename' => $file->name,
'file' => $file,
'folder_id' => null,
'parent_id' => null,
'is_last' => 'true',
])->assertStatus(201);
});
$files = File::all()
->where('folder_id', null)
->where('parent_id', null)
->pluck('id')
->toArray();
@@ -85,7 +85,7 @@ class UserZippingTest extends TestCase
$this->postJson('/api/upload', [
'filename' => $file->name,
'file' => $file,
'folder_id' => $folder->id,
'parent_id' => $folder->id,
'is_last' => 'true',
])->assertStatus(201);
});