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
+1 -1
View File
@@ -27,7 +27,7 @@ class AuthenticationTest extends TestCase
]);
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
$response->assertRedirect(route('page-builder.index', absolute: false));
}
public function test_users_can_not_authenticate_with_invalid_password()
+1 -1
View File
@@ -38,7 +38,7 @@ class EmailVerificationTest extends TestCase
Event::assertDispatched(Verified::class);
$this->assertTrue($user->fresh()->hasVerifiedEmail());
$response->assertRedirect(route('dashboard', absolute: false).'?verified=1');
$response->assertRedirect(route('page-builder.index', absolute: false).'?verified=1');
}
public function test_email_is_not_verified_with_invalid_hash()
+1 -1
View File
@@ -26,6 +26,6 @@ class RegistrationTest extends TestCase
]);
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
$response->assertRedirect(route('page-builder.index', absolute: false));
}
}