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

@@ -52,7 +52,7 @@ final class TimelineProviderTest extends WebTestCase
self::$em = self::$kernel->getContainer()
->get('doctrine.orm.entity_manager');
$center = self::$em->getRepository('ChillMainBundle:Center')
$center = self::$em->getRepository(\Chill\MainBundle\Entity\Center::class)
->findOneBy(['name' => 'Center A']);
$person = (new Person(new DateTime('2015-05-01')))
@@ -71,7 +71,7 @@ final class TimelineProviderTest extends WebTestCase
);
$report = (new Report())
->setUser(self::$em->getRepository('ChillMainBundle:User')
->setUser(self::$em->getRepository(\Chill\MainBundle\Entity\User::class)
->findOneByUsername('center a_social'))
->setDate(new DateTime('2015-05-02'))
->setPerson($this->person)