mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
replace more doctrine shortcuts by fqdn
This commit is contained in:
@@ -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([], [
|
||||
|
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user