Made test coverage for PageBuilder controllers and models

This commit is contained in:
2025-05-06 00:13:06 +02:00
parent dd5585c3d1
commit 4ae0edad49
15 changed files with 394 additions and 11 deletions
+2 -2
View File
@@ -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);
}
}