replace more doctrine shortcuts by fqdn

This commit is contained in:
2022-04-30 00:35:11 +02:00
parent a0392b9216
commit 864e1eeabb
19 changed files with 39 additions and 33 deletions

View File

@@ -70,7 +70,7 @@ final class PersonAddressControllerTest extends WebTestCase
$this->em = self::$kernel->getContainer()
->get('doctrine.orm.entity_manager');
$this->postalCode = $this->em->getRepository('ChillMainBundle:PostalCode')
$this->postalCode = $this->em->getRepository(\Chill\MainBundle\Entity\PostalCode::class)
->findOneBy(['code' => 1000]);
$this->client = self::createClient([], [

View File

@@ -192,7 +192,7 @@ final class PersonControllerUpdateTest extends WebTestCase
case 'nationality':
case 'countryOfBirth':
if (false === empty($value)) {
$country = $this->em->getRepository('ChillMainBundle:Country')
$country = $this->em->getRepository(\Chill\MainBundle\Entity\Country::class)
->findOneByCountryCode($value);
$transformedValue = $country->getId();
} else {

View File

@@ -126,7 +126,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
case 'nationality':
case 'countryOfBirth':
if (null !== $value) {
$country = $this->em->getRepository('ChillMainBundle:Country')
$country = $this->em->getRepository(\Chill\MainBundle\Entity\Country::class)
->findOneByCountryCode($value);
$transformedValue = $country->getId();
} else {