Files
armel.net/tests/Feature/HomeControllerTest.php
Armel van Ravels 66ee9d55bf
Some checks failed
PHP Composer / build (pull_request) Has been cancelled
Add running instructions to readme and fix Makefile
2025-05-28 16:23:36 +02:00

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