mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -82,7 +82,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
$customFieldsGroups = self::$kernel->getContainer()
|
||||
->get('doctrine.orm.entity_manager')
|
||||
->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)
|
||||
->findBy(['entity' => 'Chill\ReportBundle\Entity\Report']);
|
||||
->findBy(['entity' => \Chill\ReportBundle\Entity\Report::class]);
|
||||
//filter customFieldsGroup to get only "situation de logement"
|
||||
$filteredCustomFieldsGroupHouse = array_filter(
|
||||
$customFieldsGroups,
|
||||
@@ -132,7 +132,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
$form = $crawlerAddAReportPage->selectButton('Créer un nouveau rapport')->form();
|
||||
|
||||
$this->assertInstanceOf(
|
||||
'Symfony\Component\DomCrawler\Form',
|
||||
\Symfony\Component\DomCrawler\Form::class,
|
||||
$form,
|
||||
'I can see a form with a button "add a new report" '
|
||||
);
|
||||
@@ -251,7 +251,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
|
||||
$link = $crawlerPersonPage->selectLink("AJOUT D'UN RAPPORT")->link();
|
||||
$this->assertInstanceOf(
|
||||
'Symfony\Component\DomCrawler\Link',
|
||||
\Symfony\Component\DomCrawler\Link::class,
|
||||
$link,
|
||||
'There is a "add a report" link in menu'
|
||||
);
|
||||
@@ -278,7 +278,7 @@ final class ReportControllerTest extends WebTestCase
|
||||
->form();
|
||||
|
||||
$this->assertInstanceOf(
|
||||
'Symfony\Component\DomCrawler\Form',
|
||||
\Symfony\Component\DomCrawler\Form::class,
|
||||
$addForm,
|
||||
'I have a report form'
|
||||
);
|
||||
|
Reference in New Issue
Block a user