20 lines
448 B
PHP
20 lines
448 B
PHP
<?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());
|
|
}
|
|
}
|