diff --git a/tests/Feature/AuthPage/AllUrlsPageTest.php b/tests/Feature/AuthPage/AllUrlsPageTest.php index 78b20e58a..15af1138c 100644 --- a/tests/Feature/AuthPage/AllUrlsPageTest.php +++ b/tests/Feature/AuthPage/AllUrlsPageTest.php @@ -15,7 +15,10 @@ public function auAdminCanAccessThisPage(): void { $response = $this->actingAs($this->adminUser()) ->get(route('dashboard.allurl')); + $response->assertOk(); + $response = $this->actingAs($this->adminUser()) + ->get(route('dashboard.allurl-from-guest')); $response->assertOk(); } @@ -25,7 +28,10 @@ public function auNormalUserCantAccessThisPage(): void { $response = $this->actingAs($this->normalUser()) ->get(route('dashboard.allurl')); + $response->assertForbidden(); + $response = $this->actingAs($this->normalUser()) + ->get(route('dashboard.allurl-from-guest')); $response->assertForbidden(); }