php-template/tests/Feature/HealthEndpointTest.php
Snider 4833d922c5 feat(testing): add Pest configuration, example tests, and composer scripts
- 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>
2026-01-29 13:37:20 +00:00

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);
});