rater/tests/Integration/Subject/ListSubjectsTest.php

21 lines
448 B
PHP
Raw Normal View History

2026-06-03 00:29:21 +02:00
<?php
namespace App\Tests\Integration\Subject;
use App\Factory\RestaurantFactory;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class ListSubjectsTest extends WebTestCase
{
public function testSubjectList(): void
{
$client = static::createClient();
$subject = RestaurantFactory::createOne();
$client->request('GET', '/');
$this->assertSelectorTextContains('ul li', $subject->getName());
}
}