mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
replace some entity shortcut by fqdn
* ChillPerson:Person * ChillMain:Center * ChillActivity:Activity
This commit is contained in:
@@ -71,7 +71,7 @@ final class AccompanyingPeriodControllerTest extends WebTestCase
|
||||
'PHP_AUTH_PW' => 'password',
|
||||
]);
|
||||
|
||||
$center = self::$em->getRepository('ChillMainBundle:Center')
|
||||
$center = self::$em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
$this->person = (new Person(new DateTime('2015-01-05')))
|
||||
|
@@ -47,7 +47,7 @@ final class PersonAddressControllerTest extends WebTestCase
|
||||
$em = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$center = $em->getRepository('ChillMainBundle:Center')
|
||||
$center = $em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
self::$person = (new Person())
|
||||
@@ -195,7 +195,7 @@ final class PersonAddressControllerTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
self::$person = $this->em->getRepository('ChillPersonBundle:Person')
|
||||
self::$person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->find(self::$person->getId());
|
||||
}
|
||||
}
|
||||
|
@@ -51,14 +51,14 @@ final class PersonControllerCreateTest extends WebTestCase
|
||||
$em = self::$kernel->getContainer()->get('doctrine.orm.entity_manager');
|
||||
|
||||
//remove two people created during test
|
||||
$jesus = $em->getRepository('ChillPersonBundle:Person')
|
||||
$jesus = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->findOneBy(['firstName' => 'God']);
|
||||
|
||||
if (null !== $jesus) {
|
||||
$em->remove($jesus);
|
||||
}
|
||||
|
||||
$jesus2 = $em->getRepository('ChillPersonBundle:Person')
|
||||
$jesus2 = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->findOneBy(['firstName' => 'roger']);
|
||||
|
||||
if (null !== $jesus2) {
|
||||
|
@@ -58,7 +58,7 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
$this->em = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$center = $this->em->getRepository('ChillMainBundle:Center')
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
$this->person = (new Person())
|
||||
@@ -317,7 +317,7 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
$this->person = $this->em->getRepository('ChillPersonBundle:Person')
|
||||
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->find($this->person->getId());
|
||||
}
|
||||
|
||||
|
@@ -57,7 +57,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
|
||||
$this->em = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$center = $this->em->getRepository('ChillMainBundle:Center')
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
$this->person = (new Person())
|
||||
@@ -211,7 +211,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
$this->person = $this->em->getRepository('ChillPersonBundle:Person')
|
||||
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->find($this->person->getId());
|
||||
}
|
||||
|
||||
|
@@ -42,7 +42,7 @@ final class PersonControllerViewTest extends WebTestCase
|
||||
$this->em = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$center = $this->em->getRepository('ChillMainBundle:Center')
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
$this->person = (new Person())
|
||||
@@ -113,7 +113,7 @@ final class PersonControllerViewTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
$this->person = $this->em->getRepository('ChillPersonBundle:Person')
|
||||
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->find($this->person->getId());
|
||||
}
|
||||
}
|
||||
|
@@ -42,7 +42,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
|
||||
$this->em = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$center = $this->em->getRepository('ChillMainBundle:Center')
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
$this->person = (new Person())
|
||||
@@ -99,7 +99,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
$this->person = $this->em->getRepository('ChillPersonBundle:Person')
|
||||
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->find($this->person->getId());
|
||||
}
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ final class PersonDuplicateControllerViewTest extends WebTestCase
|
||||
$this->em = self::$container
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$center = $this->em->getRepository('ChillMainBundle:Center')
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
$this->person = (new Person())
|
||||
|
Reference in New Issue
Block a user