Update test to match with new admin route & button name

This commit is contained in:
Julien Fastré 2014-12-27 16:10:47 +01:00
parent 7a7cb25d7a
commit b946e2d0a3

View File

@ -101,7 +101,9 @@ class CustomFieldsTextTest extends WebTestCase
{ {
$client = static::createClient(); $client = static::createClient();
$crawler = $client->request('GET', '/admin/customfield/new?type=text'); $crawler = $client->request('GET', '/fr/admin/customfield/new?type=text');
$this->assertTrue($client->getResponse()->isSuccessful());
$form = $crawler->selectButton('custom_field_choice_submit')->form(); $form = $crawler->selectButton('custom_field_choice_submit')->form();
$this->assertTrue($form->has('custom_field_choice[options][maxLength]')); $this->assertTrue($form->has('custom_field_choice[options][maxLength]'));