saufen/tests/Feature/Web/HelloWorldTest.php
lubiana 476f91f7cf
All checks were successful
/ ls (pull_request) Successful in 1m26s
/ ls (release) Successful in 51s
/ ls (push) Successful in 1m23s
emojis
2025-06-16 20:20:22 +02:00

18 lines
497 B
PHP

<?php
declare(strict_types=1);
test('Hello World', function (): void {
// This calls KernelTestCase::bootKernel(), and creates a
// "client" that is acting as the browser
$this->ensureKernelShutdown();
$client = static::createClient();
// Request a specific page
$crawler = $client->request('GET', '/');
// Validate a successful response and some content
$this->assertResponseIsSuccessful();
$this->assertSelectorTextContains('h1', 'DRINK INVENTORY');
});