Correction of tests

This commit is contained in:
Marc Ducobu 2015-08-26 15:04:12 +02:00
parent 02a48c32c1
commit f301dbdd17
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ class ReportControllerTest extends WebTestCase
throw new \RuntimeException('the request at person page failed');
}
$link = $crawlerPersonPage->selectLink("Ajout d'un rapport")->link();
$link = $crawlerPersonPage->selectLink("AJOUT D'UN RAPPORT")->link();
$this->assertInstanceOf('Symfony\Component\DomCrawler\Link', $link,
"There is a \"add a report\" link in menu");
$this->assertContains(sprintf("/fr/person/%d/report/select/type/for/creation",

View File

@ -67,7 +67,7 @@ class TimelineProviderTest extends WebTestCase
->findOneBy(array('name' => 'Center A'));
$person = (new Person(new \DateTime('2015-05-01')))
->setGenre(Person::GENRE_WOMAN)
->setGender(Person::FEMALE_GENDER)
->setFirstName('Nelson')
->setLastName('Mandela')
->setCenter($center);