From 0a9d9b3e766bb11bcad8b1bbb73d8976971df3c8 Mon Sep 17 00:00:00 2001 From: KNaveenraj-ladybird Date: Wed, 25 Oct 2023 18:00:32 +0530 Subject: [PATCH] commit-1 --- tests/Unit/ExampleTest.php | 50 -------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 tests/Unit/ExampleTest.php diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php deleted file mode 100644 index cfe375dcb..000000000 --- a/tests/Unit/ExampleTest.php +++ /dev/null @@ -1,50 +0,0 @@ -assertTrue(true); - } - - public function test_store_user() - { - $faker = FakerFactory::create(); - - //Create User -> Agent - $str = Str::random(10); - $password = Hash::make($str); - $email = $faker->unique()->email(); - $user = new User([ - 'first_name' => $faker->firstName(), - 'last_name' => $faker->lastName(), - 'email' => $email, - 'user_name' => $faker->unique()->userName(), - 'password' => $password, - 'active' => 1, - 'role' => 'user', - ]); - $user->save(); - - // Check if data is inserted - $this->assertDatabaseHas('users', ['email' => $email]); - - // Authenticate as the created user - $this->actingAs($user); - - $this->assertAuthenticated(); - } -}