From cad44ae46169465257b564d9abb8579808a144c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 28 Dec 2015 20:54:34 +0100 Subject: [PATCH] fix test 'complete scenario' The link 'modifier' was changed to 'Modifier' --- Tests/Controller/CustomFieldsGroupControllerTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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());