mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
add person.center to timeline tests
This commit is contained in:
parent
064ccfba3f
commit
efa2f001c7
@ -62,10 +62,14 @@ class TimelineProviderTest extends WebTestCase
|
|||||||
static::$em = static::$kernel->getContainer()
|
static::$em = static::$kernel->getContainer()
|
||||||
->get('doctrine.orm.entity_manager');
|
->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')))
|
$this->person = (new Person(new \DateTime('2015-05-01')))
|
||||||
->setGenre(Person::GENRE_WOMAN)
|
->setGenre(Person::GENRE_WOMAN)
|
||||||
->setFirstName('Nelson')
|
->setFirstName('Nelson')
|
||||||
->setLastName('Mandela');
|
->setLastName('Mandela')
|
||||||
|
->setCenter($center);
|
||||||
static::$em->persist($this->person);
|
static::$em->persist($this->person);
|
||||||
|
|
||||||
$this->report = (new Report)
|
$this->report = (new Report)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user