Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Apr 28, 2024
1 parent 24edbea commit 9a311c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Feature/AuthPage/AllUrlsPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand All @@ -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();
}

Expand Down

0 comments on commit 9a311c1

Please sign in to comment.