mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -16,6 +16,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
|
||||
@@ -31,26 +32,26 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
/**
|
||||
self::bootKernel(['environment' => 'test_with_hidden_fields']);
|
||||
|
||||
$this->em = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findOneBy(['name' => 'Center A']);
|
||||
|
||||
$this->person = (new Person())
|
||||
->setLastName('Tested Person')
|
||||
->setFirstName('Réginald')
|
||||
->setCenter($center)
|
||||
->setGender(Person::MALE_GENDER);
|
||||
|
||||
$this->em->persist($this->person);
|
||||
$this->em->flush();
|
||||
|
||||
$this->viewUrl = '/en/person/' . $this->person->getId() . '/general';
|
||||
*/
|
||||
/*
|
||||
* self::bootKernel(['environment' => 'test_with_hidden_fields']);
|
||||
*
|
||||
* $this->em = self::$kernel->getContainer()
|
||||
* ->get('doctrine.orm.entity_manager');
|
||||
*
|
||||
* $center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
* ->findOneBy(['name' => 'Center A']);
|
||||
*
|
||||
* $this->person = (new Person())
|
||||
* ->setLastName('Tested Person')
|
||||
* ->setFirstName('Réginald')
|
||||
* ->setCenter($center)
|
||||
* ->setGender(Person::MALE_GENDER);
|
||||
*
|
||||
* $this->em->persist($this->person);
|
||||
* $this->em->flush();
|
||||
*
|
||||
* $this->viewUrl = '/en/person/' . $this->person->getId() . '/general';
|
||||
*/
|
||||
}
|
||||
|
||||
protected function tearDown(): void
|
||||
|
Reference in New Issue
Block a user