From fd23602c2c0c25fb50466f051c9d9b46347a8b34 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Tue, 24 Sep 2024 18:46:57 -0400 Subject: [PATCH 1/2] FOUR-19349 --- tests/Feature/RedirectTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/RedirectTest.php b/tests/Feature/RedirectTest.php index f595a5100b..0da2c3e6b3 100644 --- a/tests/Feature/RedirectTest.php +++ b/tests/Feature/RedirectTest.php @@ -24,11 +24,11 @@ public function test401RedirectsToLogin() 'is_administrator' => false, ]); Auth::login($user); - $response = $this->get('/cases'); + $response = $this->get('/requests'); $response->assertStatus(200); $response->assertViewIs('requests.index'); Auth::logoutCurrentDevice(); - $response = $this->get('/cases'); + $response = $this->get('/requests'); //302 because we want to make sure they are being redirected $response->assertStatus(302); } From 8b3ca55a19e98a01ed627b839cf669c69f7a6092 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Tue, 24 Sep 2024 19:50:10 -0400 Subject: [PATCH 2/2] Solving observations --- tests/Feature/Api/UsersTest.php | 2 +- tests/Feature/RequestTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Api/UsersTest.php b/tests/Feature/Api/UsersTest.php index 3c9dbbd61d..e728593866 100644 --- a/tests/Feature/Api/UsersTest.php +++ b/tests/Feature/Api/UsersTest.php @@ -196,7 +196,7 @@ public function testDefaultValuesOfUser() 'lastname' => $faker->lastName(), 'email' => $faker->email(), 'status' => $faker->randomElement(['ACTIVE', 'INACTIVE']), - 'password' => $faker->password(8) . 'A' . '1', + 'password' => $faker->password(8) . 'A' . '1' . '+', 'timezone' => 'America/Monterrey', ]); diff --git a/tests/Feature/RequestTest.php b/tests/Feature/RequestTest.php index ee2138d301..f39421c5ec 100644 --- a/tests/Feature/RequestTest.php +++ b/tests/Feature/RequestTest.php @@ -45,7 +45,7 @@ class RequestTest extends TestCase public function testIndexRoute() { // get the URL - $response = $this->webCall('GET', '/cases'); + $response = $this->webCall('GET', '/requests'); $response->assertStatus(200); // check the correct view is called $response->assertViewIs('requests.index');