mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
update php-cs-fixer and rector + fix rules
This commit is contained in:
@@ -196,7 +196,7 @@ final class PersonAddressControllerTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
self::$person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
self::$person = $this->em->getRepository(Person::class)
|
||||
->find(self::$person->getId());
|
||||
}
|
||||
}
|
||||
|
@@ -89,7 +89,7 @@ final class PersonControllerCreateTest extends WebTestCase
|
||||
$form = $crawler->selectButton("Créer l'usager")->form();
|
||||
|
||||
$this->assertInstanceOf(
|
||||
\Symfony\Component\DomCrawler\Form::class,
|
||||
Form::class,
|
||||
$form,
|
||||
'The page contains a button'
|
||||
);
|
||||
|
@@ -205,7 +205,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
$this->person = $this->em->getRepository(Person::class)
|
||||
->find($this->person->getId());
|
||||
}
|
||||
|
||||
|
@@ -98,7 +98,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
|
||||
*/
|
||||
protected function refreshPerson()
|
||||
{
|
||||
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
$this->person = $this->em->getRepository(Person::class)
|
||||
->find($this->person->getId());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user