Files
armel.net/tests/Feature/HomeControllerTest.php
Armel van Ravels bb1d280731
All checks were successful
PHP Composer / build (push) Successful in 10m28s
Initial commit
2024-08-30 22:13:03 +02:00

19 lines
394 B
PHP

<?php
declare(strict_types=1);
it('returns status 200', function (): void {
$response = get('/');
$body = $response->getBody();
$body->rewind();
expect($response->getStatusCode())->toBe(200);
});
it('view is rendered', function (): void {
$response = get('/');
$body = $response->getBody();
$body->rewind();
expect($body->getContents())->toBe('Welkom');
});