mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
cs: Second part - ignore test/app
subdirectory.
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user