fix capitalization

This commit is contained in:
Julien Fastré 2021-10-14 14:37:50 +02:00
parent 8c3f8d8806
commit 0497625e90

View File

@ -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');
}