From ce61d1a1d4c418881737921f72dca8e11742eca6 Mon Sep 17 00:00:00 2001 From: KNaveenraj-ladybird Date: Thu, 26 Oct 2023 19:12:49 +0530 Subject: [PATCH] test_case_fixes2 --- tests/Unit/ArticleControllerTest.php | 18 ++++++++---------- tests/Unit/CategoryControllerTest.php | 2 -- tests/Unit/PageControllerTest.php | 2 -- tests/Unit/TicketControllerTest.php | 2 -- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/tests/Unit/ArticleControllerTest.php b/tests/Unit/ArticleControllerTest.php index 53f2a6aec..064796da7 100644 --- a/tests/Unit/ArticleControllerTest.php +++ b/tests/Unit/ArticleControllerTest.php @@ -34,16 +34,14 @@ class ArticleControllerTest extends TestCase $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, - 'assign_group' => 1, - 'primary_dpt' => 1, - 'active' => 1, - 'role' => 'agent', - 'agent_tzone' => 81, + 'first_name' => $faker->firstName(), + 'last_name' => $faker->lastName(), + 'email' => $email, + 'user_name' => $faker->unique()->userName(), + 'password' => $password, + 'active' => 1, + 'role' => 'agent', + 'agent_tzone' => 81, ]); $user->save(); diff --git a/tests/Unit/CategoryControllerTest.php b/tests/Unit/CategoryControllerTest.php index de26e361d..808616e9a 100644 --- a/tests/Unit/CategoryControllerTest.php +++ b/tests/Unit/CategoryControllerTest.php @@ -36,8 +36,6 @@ class CategoryControllerTest extends TestCase 'email' => $email, 'user_name' => $faker->unique()->userName(), 'password' => $password, - 'assign_group' => 1, - 'primary_dpt' => 1, 'active' => 1, 'role' => 'agent', 'agent_tzone' => 81, diff --git a/tests/Unit/PageControllerTest.php b/tests/Unit/PageControllerTest.php index 081578ee5..041e5ee8b 100644 --- a/tests/Unit/PageControllerTest.php +++ b/tests/Unit/PageControllerTest.php @@ -33,8 +33,6 @@ class PageControllerTest extends TestCase 'email' => $email, 'user_name' => $faker->unique()->userName(), 'password' => $password, - 'assign_group' => 1, - 'primary_dpt' => 1, 'active' => 1, 'role' => 'agent', 'agent_tzone' => 81, diff --git a/tests/Unit/TicketControllerTest.php b/tests/Unit/TicketControllerTest.php index ae1c0834b..9f31b2dc3 100644 --- a/tests/Unit/TicketControllerTest.php +++ b/tests/Unit/TicketControllerTest.php @@ -34,8 +34,6 @@ class TicketControllerTest extends TestCase 'email' => $email, 'user_name' => $faker->unique()->userName(), 'password' => $password, - 'assign_group' => 1, - 'primary_dpt' => 1, 'active' => 1, 'role' => 'agent', 'agent_tzone' => 81,