From 0497625e906af91a2f5699551603b69b42fef202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 14 Oct 2021 14:37:50 +0200 Subject: [PATCH] fix capitalization --- .../Tests/Search/PersonSearchTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Search/PersonSearchTest.php b/src/Bundle/ChillPersonBundle/Tests/Search/PersonSearchTest.php index 7b5b6f022..023a67231 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Search/PersonSearchTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Search/PersonSearchTest.php @@ -109,12 +109,12 @@ class PersonSearchTest extends WebTestCase { $crawlerSpecial = $this->generateCrawlerForSearch('@person firstname:Gérard'); - $this->assertRegExp('/GÉRARD/', $crawlerSpecial->filter('.list-with-period')->text()); + $this->assertRegExp('/Gérard/', $crawlerSpecial->filter('.list-with-period')->text()); $crawlerNoSpecial = $this->generateCrawlerForSearch('@person firstname:Gerard'); - $this->assertRegExp('/GÉRARD/', $crawlerNoSpecial->filter('.list-with-period')->text()); + $this->assertRegExp('/Gérard/', $crawlerNoSpecial->filter('.list-with-period')->text()); } public function testSearchCombineLastnameAndNationality() @@ -205,10 +205,10 @@ class PersonSearchTest extends WebTestCase $crawlerCanSee = $this->generateCrawlerForSearch('Gérard', 'center a_social'); $crawlerCannotSee = $this->generateCrawlerForSearch('Gérard', 'center b_social'); - $this->assertRegExp('/Depardieu/', $crawlerCanSee->text(), + $this->assertRegExp('/DEPARDIEU/', $crawlerCanSee->text(), 'center a_social may see "Depardieu" in center a'); - $this->assertNotRegExp('/Depardieu/', $crawlerCannotSee->text(), - 'center b_social may see "Depardieu" in center b'); + $this->assertNotRegExp('/DEPARDIEU/', $crawlerCannotSee->text(), + 'center b_social may not see "Depardieu" in center b'); }