From efa2f001c7b0c6e240267952fc43801657badc48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 19 Jun 2015 22:36:00 +0200 Subject: [PATCH] add person.center to timeline tests --- Tests/Timeline/TimelineProviderTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/Timeline/TimelineProviderTest.php b/Tests/Timeline/TimelineProviderTest.php index bf18a3eab..904136770 100644 --- a/Tests/Timeline/TimelineProviderTest.php +++ b/Tests/Timeline/TimelineProviderTest.php @@ -62,10 +62,14 @@ class TimelineProviderTest extends WebTestCase static::$em = static::$kernel->getContainer() ->get('doctrine.orm.entity_manager'); + $center = static::$em->getRepository('ChillMainBundle:Center') + ->findOneBy(array('name' => 'Center A')); + $this->person = (new Person(new \DateTime('2015-05-01'))) ->setGenre(Person::GENRE_WOMAN) ->setFirstName('Nelson') - ->setLastName('Mandela'); + ->setLastName('Mandela') + ->setCenter($center); static::$em->persist($this->person); $this->report = (new Report)