Files
armel.net/tests/Feature/HomeControllerTest.php
Armel van Ravels 804a875aff
Some checks failed
PHP Composer / build (push) Has been cancelled
Initial commit
2024-08-30 22:07:55 +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');
});