diff --git a/Tests/Controller/CenterControllerTest.php b/Tests/Controller/CenterControllerTest.php index 4bc8521a0..ede351e8b 100644 --- a/Tests/Controller/CenterControllerTest.php +++ b/Tests/Controller/CenterControllerTest.php @@ -12,6 +12,7 @@ class CenterControllerTest extends WebTestCase $client = static::createClient(array(), array( 'PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'password', + 'HTTP_ACCEPT_LANGUAGE' => 'fr_FR' )); // Create a new entry in the database @@ -34,9 +35,9 @@ class CenterControllerTest extends WebTestCase 'Missing element td:contains("Test center")'); // Edit the entity - $crawler = $client->click($crawler->selectLink('Edit')->link()); + $crawler = $client->click($crawler->selectLink('Modifier')->link()); - $form = $crawler->selectButton('Update')->form(array( + $form = $crawler->selectButton('Mettre à jour')->form(array( 'chill_mainbundle_center[name]' => 'Foo', )); diff --git a/Tests/Controller/ScopeControllerTest.php b/Tests/Controller/ScopeControllerTest.php index 73244c70c..ad8318002 100644 --- a/Tests/Controller/ScopeControllerTest.php +++ b/Tests/Controller/ScopeControllerTest.php @@ -12,6 +12,7 @@ class ScopeControllerTest extends WebTestCase $client = static::createClient(array(), array( 'PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'password', + 'HTTP_ACCEPT_LANGUAGE' => 'fr_FR' )); // Create a new entry in the database @@ -41,9 +42,9 @@ class ScopeControllerTest extends WebTestCase 'Missing element td:contains("Test en fr")'); // Edit the entity - $crawler = $client->click($crawler->selectLink('Edit')->link()); + $crawler = $client->click($crawler->selectLink('Modifier')->link()); - $form = $crawler->selectButton('Update')->form(array( + $form = $crawler->selectButton('Mettre à jour')->form(array( 'chill_mainbundle_scope[name][fr]' => 'Foo', 'chill_mainbundle_scope[name][en]' => 'Foo en', ));