mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-02 23:16:13 +00:00
Fix test with authorization: search for not presence of Depardieu
This tests fails as multiple "Gerard" may be present in database.
This commit is contained in:
parent
71c22b9c06
commit
b88c01365d
@ -200,11 +200,10 @@ class PersonSearchTest extends WebTestCase
|
|||||||
$crawlerCanSee = $this->generateCrawlerForSearch('Gérard', 'center a_social');
|
$crawlerCanSee = $this->generateCrawlerForSearch('Gérard', 'center a_social');
|
||||||
$crawlerCannotSee = $this->generateCrawlerForSearch('Gérard', 'center b_social');
|
$crawlerCannotSee = $this->generateCrawlerForSearch('Gérard', 'center b_social');
|
||||||
|
|
||||||
$this->assertRegExp('/Gérard/', $crawlerCanSee->text(),
|
$this->assertRegExp('/Depardieu/', $crawlerCanSee->text(),
|
||||||
'center a_social may see "Gérard" in center a');
|
'center a_social may see "Depardieu" in center a');
|
||||||
$this->assertRegExp('/Aucune personne ne correspond aux termes de recherche/',
|
$this->assertNotRegExp('/Depardieu/', $crawlerCannotSee->text(),
|
||||||
$crawlerCannotSee->text(),
|
'center b_social may see "Depardieu" in center b');
|
||||||
'center b_social may not see any "Gérard" associated to center b');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user