mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-06 13:29:43 +00:00
php cs fixes after updating php cs fixer
This commit is contained in:
@@ -43,7 +43,7 @@ final class ReportControllerNextTest extends WebTestCase
|
||||
->get('doctrine.orm.entity_manager');
|
||||
|
||||
$this->person = $em
|
||||
->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->getRepository(Person::class)
|
||||
->findOneBy(
|
||||
[
|
||||
'lastName' => 'Charline',
|
||||
@@ -58,7 +58,7 @@ final class ReportControllerNextTest extends WebTestCase
|
||||
// get custom fields group from fixture
|
||||
$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(
|
||||
|
@@ -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'
|
||||
);
|
||||
|
@@ -44,7 +44,9 @@ final class ReportVoterTest extends KernelTestCase
|
||||
*/
|
||||
protected $voter;
|
||||
|
||||
public static function setUpBeforeClass(): void {}
|
||||
public static function setUpBeforeClass(): void
|
||||
{
|
||||
}
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
@@ -58,7 +58,7 @@ final class TimelineProviderTest extends WebTestCase
|
||||
|
||||
$scopesSocial = array_filter(
|
||||
self::$em
|
||||
->getRepository(\Chill\MainBundle\Entity\Scope::class)
|
||||
->getRepository(Scope::class)
|
||||
->findAll(),
|
||||
static fn (Scope $scope) => 'social' === $scope->getName()['en']
|
||||
);
|
||||
|
Reference in New Issue
Block a user