diff --git a/Tests/Controller/CustomFieldsGroupControllerTest.php b/Tests/Controller/CustomFieldsGroupControllerTest.php index 420c4bf4c..c2150abec 100644 --- a/Tests/Controller/CustomFieldsGroupControllerTest.php +++ b/Tests/Controller/CustomFieldsGroupControllerTest.php @@ -51,7 +51,10 @@ class CustomFieldsGroupControllerTest extends WebTestCase private function editCustomFieldsGroup(Client $client) { $crawler = $client->request('GET', '/fr/admin/customfieldsgroup/'); - $links = $crawler->selectLink('modifier'); + $links = $crawler->selectLink('Modifier'); + + $this->assertGreaterThan(0, $links->count(), + "We can't find a 'Modifier' link on the index page"); $crawler = $client->click($links->last()->link()); $this->assertEquals(200, $client->getResponse()->getStatusCode());