mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
paginator refactoring and implementation into the routes
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<?php
|
||||
namespace Tests\App\Restrictions;
|
||||
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Storage;
|
||||
use Str;
|
||||
use Tests\TestCase;
|
||||
use App\Users\Models\User;
|
||||
use Domain\Files\Models\File;
|
||||
@@ -121,10 +124,15 @@ class DefaultRestrictionsTest extends TestCase
|
||||
->hasSettings()
|
||||
->create();
|
||||
|
||||
$file = UploadedFile::fake()
|
||||
->create(Str::random() . '-fake-file.pdf', 1200, 'application/pdf');
|
||||
|
||||
Storage::putFileAs("files/$user->id", $file, $file->name);
|
||||
|
||||
$file = File::factory()
|
||||
->create([
|
||||
'user_id' => $user->id,
|
||||
'basename' => 'fake-file.pdf',
|
||||
'basename' => $file->name,
|
||||
'name' => 'fake-file.pdf',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user