diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php index 81eea1b15..9faf05510 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php @@ -109,37 +109,6 @@ class PersonControllerCreateTest extends WebTestCase return $form; } - /** - * - * @param Form $form - * @depends testAddAPersonPage - */ - public function testFirstnameTooLong(Form $form) - { - $client = $this-client; - $this->fillAValidCreationForm($form); - $form->get(self::FIRSTNAME_INPUT)->setValue(mb_substr(self::LONG_TEXT, 0, 256)); - $crawler = $client->submit($form); - - $this->assertEquals(1, $crawler->filter('.error')->count(), - "An error message is shown if we fill more than 255 characters in firstname"); - } - - /** - * - * @param Form $form - * @depends testAddAPersonPage - */ - public function testLastnameTooLong(Form $form) - { - $this->fillAValidCreationForm($form); - $form->get(self::LASTNAME_INPUT)->setValue(mb_substr(self::LONG_TEXT, 0, 256)); - $crawler = $this->getAuthenticatedClient()->submit($form); - - $this->assertEquals(1, $crawler->filter('.error')->count(), - "An error message is shown if we fill more than 255 characters in lastname"); - } - /** * * @param Form $form