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