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

@@ -119,14 +119,14 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertTrue(
$this->client->getResponse()->isRedirect(
'/fr/person/' . $this->person->getId() . '/accompanying-period'
),
'/fr/person/' . $this->person->getId() . '/accompanying-period'
),
'the server redirects to /accompanying-period page'
);
$this->assertGreaterThan(
0,
$this->client->followRedirect()
->filter('.alert-success')->count(),
->filter('.alert-success')->count(),
"a 'success' element is shown"
);
}
@@ -159,14 +159,14 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertTrue(
$this->client->getResponse()->isRedirect(
'/fr/person/' . $this->person->getId() . '/accompanying-period'
),
'/fr/person/' . $this->person->getId() . '/accompanying-period'
),
'the server redirects to /accompanying-period page'
);
$this->assertGreaterThan(
0,
$this->client->followRedirect()
->filter('.alert-success')->count(),
->filter('.alert-success')->count(),
"a 'success' element is shown"
);
}
@@ -204,7 +204,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->assertGreaterThan(
0,
$crawlerResponse
->filter('.alert-danger')->count(),
->filter('.alert-danger')->count(),
"an '.alert-danger' element is shown"
);
}
@@ -473,10 +473,10 @@ class AccompanyingPeriodControllerTest extends WebTestCase
$this->client->request(
'GET',
sprintf(
'/fr/person/%d/accompanying-period/%d/re-open',
$this->person->getId(),
$this->person->getOpenedAccompanyingPeriod()->getId()
)
'/fr/person/%d/accompanying-period/%d/re-open',
$this->person->getId(),
$this->person->getOpenedAccompanyingPeriod()->getId()
)
);
$this->assertEquals(
400,