Fix tests on person's controller

This commit is contained in:
2023-08-29 15:02:38 +02:00
parent 939a6753bd
commit 5314e7b501
2 changed files with 11 additions and 60 deletions

View File

@@ -71,9 +71,8 @@ final class PersonControllerViewTest extends WebTestCase
]);
$crawler = $client->request('GET', $this->viewUrl);
$response = $client->getResponse();
$this->assertTrue($response->isSuccessful());
self::assertResponseIsSuccessful();
$this->assertGreaterThan(0, $crawler->filter('html:contains("TESTED PERSON")')->count());
$this->assertGreaterThan(0, $crawler->filter('html:contains("Réginald")')->count());