From dfb809acee67fd7bace2caa73dfff061d3ecd36f Mon Sep 17 00:00:00 2001 From: Peter Papp Date: Fri, 26 Feb 2021 18:23:13 +0100 Subject: [PATCH] - test skelet for share --- tests/Feature/BrowseTest.php | 2 +- tests/Feature/FileTest.php | 10 ++++++++ tests/Feature/FolderTest.php | 10 ++++++++ tests/Feature/ShareTest.php | 48 ++++++++++++++++++++++++++++++++++++ tests/Feature/UserTest.php | 6 ++--- 5 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 tests/Feature/ShareTest.php diff --git a/tests/Feature/BrowseTest.php b/tests/Feature/BrowseTest.php index cd80eed8..eecb508d 100644 --- a/tests/Feature/BrowseTest.php +++ b/tests/Feature/BrowseTest.php @@ -10,7 +10,7 @@ use Tests\TestCase; class BrowseTest extends TestCase { use DatabaseMigrations; - + public function it_get_navigator_tree() { diff --git a/tests/Feature/FileTest.php b/tests/Feature/FileTest.php index 8ecb71cc..464b4c43 100644 --- a/tests/Feature/FileTest.php +++ b/tests/Feature/FileTest.php @@ -43,6 +43,16 @@ class FileTest extends TestCase } + public function it_delete_single_file() + { + + } + + public function it_delete_multiple_files() + { + + } + public function it_delete_file_softly() { diff --git a/tests/Feature/FolderTest.php b/tests/Feature/FolderTest.php index 80449a34..10d596a2 100644 --- a/tests/Feature/FolderTest.php +++ b/tests/Feature/FolderTest.php @@ -60,6 +60,16 @@ class FolderTest extends TestCase } + public function it_delete_single_folder() + { + + } + + public function it_delete_multiple_folder() + { + + } + public function it_delete_folder_softly() { diff --git a/tests/Feature/ShareTest.php b/tests/Feature/ShareTest.php new file mode 100644 index 00000000..9dbcabef --- /dev/null +++ b/tests/Feature/ShareTest.php @@ -0,0 +1,48 @@ +postJson('/register', [ 'email' => 'john@doe.com', @@ -55,7 +55,7 @@ class UserTest extends TestCase /** * @test */ - public function it_login_user_via_post_request() + public function it_login_user() { $user = User::factory(User::class) ->create(['email' => 'john@doe.com']); @@ -69,7 +69,7 @@ class UserTest extends TestCase /** * @test */ - public function it_change_user_password_via_post_request() + public function it_change_user_password_in_profile_settings() { $user = User::factory(User::class) ->create();