Something went wrong. Try again.
Something went wrong. Try again.
393 B · 17 lines
PHP
at main
123456789101112131415161718<?php
namespace App\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class HomeControllerTest extends WebTestCase{ public function testHomepageIsReachable(): void { $client = static::createClient(); $client->request('GET', '/');
self::assertResponseIsSuccessful(); self::assertSelectorTextContains('h1', 'It works.'); }}