replace some entity shortcut by fqdn

* ChillPerson:Person
* ChillMain:Center
* ChillActivity:Activity
This commit is contained in:
2022-04-30 00:20:18 +02:00
parent 8ba51bafd0
commit a0392b9216
29 changed files with 61 additions and 60 deletions

View File

@@ -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')))

View File

@@ -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());
}
}

View File

@@ -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) {

View File

@@ -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());
}

View File

@@ -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());
}

View File

@@ -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());
}
}

View File

@@ -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());
}
}

View File

@@ -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())