'center a_social', 'PHP_AUTH_PW' => 'password', )); $crawler = $client->request('GET', '/fr/person/new'); $this->assertTrue($client->getResponse()->isSuccessful(), "The page is accessible at the URL /{_locale}/person/new"); $form = $crawler->selectButton("Ajouter la personne")->form(); $this->assertTrue($form->has('chill_personbundle_person_creation[firstName]'), 'The page contains a "firstname" input'); $this->assertTRue($form->has("chill_personbundle_person_creation[lastName]"), 'The page contains a "lastname" input'); $this->assertTrue($form->has("chill_personbundle_person_creation[genre]"), 'The page contains a "gender" input'); $this->assertTrue($form->has("chill_personbundle_person_creation[dateOfBirth]"), 'The page has a "date of birth" input'); } }