From f301dbdd1706936b44b0473e839d0db6c33ec3af Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Wed, 26 Aug 2015 15:04:12 +0200 Subject: [PATCH] Correction of tests --- Tests/Controller/ReportControllerTest.php | 2 +- Tests/Timeline/TimelineProviderTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Controller/ReportControllerTest.php b/Tests/Controller/ReportControllerTest.php index 7fb485a7d..e5373b339 100644 --- a/Tests/Controller/ReportControllerTest.php +++ b/Tests/Controller/ReportControllerTest.php @@ -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", diff --git a/Tests/Timeline/TimelineProviderTest.php b/Tests/Timeline/TimelineProviderTest.php index 080a8f288..5df8e22fd 100644 --- a/Tests/Timeline/TimelineProviderTest.php +++ b/Tests/Timeline/TimelineProviderTest.php @@ -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);