- Add tests/Pest.php with TestCase binding and RefreshDatabase - Add example feature tests: WelcomePageTest, HealthEndpointTest - Add composer scripts: lint, test, test:coverage Implements P2-049, P2-050, P2-051 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
554 B
PHP
20 lines
554 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Health Endpoint Tests
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| These tests verify that the health check endpoint is accessible and
|
|
| returns the expected response. The /up endpoint is used by load
|
|
| balancers and monitoring services to check application health.
|
|
|
|
|
*/
|
|
|
|
it('returns ok status from health endpoint', function () {
|
|
$response = $this->get('/up');
|
|
|
|
$response->assertStatus(200);
|
|
});
|