mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
update php-cs-fixer and rector + fix rules
This commit is contained in:
@@ -43,7 +43,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
private static $group;
|
||||
|
||||
/**
|
||||
* @var \Chill\PersonBundle\Entity\Person
|
||||
* @var Person
|
||||
*/
|
||||
private static $person;
|
||||
|
||||
@@ -59,7 +59,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
// get a random person
|
||||
self::$person = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager')
|
||||
->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->getRepository(Person::class)
|
||||
->findOneBy(
|
||||
[
|
||||
'lastName' => 'Charline',
|
||||
@@ -73,7 +73,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
|
||||
$customFieldsGroups = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager')
|
||||
->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)
|
||||
->getRepository(CustomFieldsGroup::class)
|
||||
->findBy(['entity' => \Chill\ReportBundle\Entity\Report::class]);
|
||||
// filter customFieldsGroup to get only "situation de logement"
|
||||
$filteredCustomFieldsGroupHouse = array_filter(
|
||||
@@ -123,7 +123,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
$form = $crawlerAddAReportPage->selectButton('Créer un nouveau rapport')->form();
|
||||
|
||||
$this->assertInstanceOf(
|
||||
\Symfony\Component\DomCrawler\Form::class,
|
||||
Form::class,
|
||||
$form,
|
||||
'I can see a form with a button "add a new report" '
|
||||
);
|
||||
@@ -242,7 +242,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
|
||||
$link = $crawlerPersonPage->selectLink("AJOUT D'UN RAPPORT")->link();
|
||||
$this->assertInstanceOf(
|
||||
\Symfony\Component\DomCrawler\Link::class,
|
||||
Link::class,
|
||||
$link,
|
||||
'There is a "add a report" link in menu'
|
||||
);
|
||||
@@ -270,7 +270,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
->form();
|
||||
|
||||
$this->assertInstanceOf(
|
||||
\Symfony\Component\DomCrawler\Form::class,
|
||||
Form::class,
|
||||
$addForm,
|
||||
'I have a report form'
|
||||
);
|
||||
|
Reference in New Issue
Block a user