php-template/tests/Feature/WelcomePageTest.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

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