- test skelet for folders and files

This commit is contained in:
Peter Papp
2021-02-26 18:12:28 +01:00
parent b7e1be7518
commit fe728479d0
2 changed files with 137 additions and 0 deletions

View 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()
{
}
}

View 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()
{
}
}