Made test coverage for PageBuilder controllers and models
This commit is contained in:
@@ -12,7 +12,7 @@ class DashboardTest extends TestCase
|
||||
|
||||
public function test_guests_are_redirected_to_the_login_page()
|
||||
{
|
||||
$response = $this->get('/dashboard');
|
||||
$response = $this->get('/dashboard/page-admin');
|
||||
$response->assertRedirect('/login');
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class DashboardTest extends TestCase
|
||||
$user = User::factory()->create();
|
||||
$this->actingAs($user);
|
||||
|
||||
$response = $this->get('/dashboard');
|
||||
$response = $this->get('/dashboard/page-admin');
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user