- 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>
26 lines
643 B
PHP
26 lines
643 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Welcome Page Tests
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| These tests verify that the welcome page is accessible and renders
|
|
| correctly. This is an example feature test demonstrating the patterns
|
|
| used in Core PHP Framework applications.
|
|
|
|
|
*/
|
|
|
|
it('displays the welcome page', function () {
|
|
$response = $this->get('/');
|
|
|
|
$response->assertStatus(200);
|
|
});
|
|
|
|
it('returns the welcome view', function () {
|
|
$response = $this->get('/');
|
|
|
|
$response->assertViewIs('welcome');
|
|
});
|