mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
- test skelet for folders and files
This commit is contained in:
55
tests/Feature/FileTest.php
Normal file
55
tests/Feature/FileTest.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\File;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Tests\TestCase;
|
||||
|
||||
class FileTest extends TestCase
|
||||
{
|
||||
use DatabaseMigrations;
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_test_file_factory()
|
||||
{
|
||||
$folder = File::factory(File::class)
|
||||
->create();
|
||||
|
||||
$this->assertDatabaseHas('files', [
|
||||
'id' => $folder->id
|
||||
]);
|
||||
}
|
||||
|
||||
public function it_upload_new_file()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_rename_file()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_move_file_to_another_folder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_zip_and_download_multiple_files()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_delete_file_softly()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_delete_file_hardly()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
82
tests/Feature/FolderTest.php
Normal file
82
tests/Feature/FolderTest.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\Folder;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
|
||||
class FolderTest extends TestCase
|
||||
{
|
||||
use DatabaseMigrations;
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_test_folder_factory()
|
||||
{
|
||||
$folder = Folder::factory(Folder::class)
|
||||
->create();
|
||||
|
||||
$this->assertDatabaseHas('folders', [
|
||||
'id' => $folder->id
|
||||
]);
|
||||
}
|
||||
|
||||
public function it_create_new_folder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_rename_folder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_set_folder_emoji()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_set_folder_color()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_move_folder_to_another_folder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_add_to_favourites_folder()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_zip_and_download_folder_with_content_within()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_delete_folder_softly()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_delete_folder_hardly()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_delete_folder_with_their_content_within_softly()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function it_delete_folder_with_their_content_within_hardly()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user