cs: Second part - ignore test/app subdirectory.

This commit is contained in:
Pol Dellaiera
2021-11-23 14:34:34 +01:00
parent 5f37304796
commit 3ea35682eb
72 changed files with 326 additions and 365 deletions

View File

@@ -83,8 +83,8 @@ class ReportControllerTest extends WebTestCase
$filteredCustomFieldsGroupHouse = array_filter(
$customFieldsGroups,
function (CustomFieldsGroup $group) {
return in_array('Situation de logement', $group->getName());
}
return in_array('Situation de logement', $group->getName());
}
);
static::$group = $filteredCustomFieldsGroupHouse[0];
@@ -136,7 +136,7 @@ class ReportControllerTest extends WebTestCase
$this->assertGreaterThan(
1,
count($form->get(self::REPORT_NAME_FIELD)
->availableOptionValues()),
->availableOptionValues()),
'I can choose between report models'
);
@@ -253,9 +253,9 @@ class ReportControllerTest extends WebTestCase
);
$this->assertContains(
sprintf(
'/fr/person/%d/report/select/type/for/creation',
static::$person->getId()
),
'/fr/person/%d/report/select/type/for/creation',
static::$person->getId()
),
$link->getUri(),
'There is a "add a report" link in menu'
);
@@ -334,10 +334,10 @@ class ReportControllerTest extends WebTestCase
$this->assertTrue($client->getResponse()->isRedirect(
sprintf(
'/fr/person/%s/report/%s/view',
static::$person->getId(),
$reportId
)
'/fr/person/%s/report/%s/view',
static::$person->getId(),
$reportId
)
));
$this->assertEquals(new DateTime('yesterday'), static::$kernel->getContainer()
@@ -416,8 +416,7 @@ class ReportControllerTest extends WebTestCase
Person $person,
CustomFieldsGroup $group,
\Symfony\Component\BrowserKit\Client $client
)
{
) {
$url = sprintf(
'fr/person/%d/report/cfgroup/%d/new',
$person->getId(),