From 395735e6f75ab521b2c74385fae59790495ca250 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Tue, 20 Apr 2021 16:23:47 +0200 Subject: [PATCH] tests/ChillPersonBundle: remove broken obsolete testFirstnameTooLong, html input and doctrine contrains are working --- .../Controller/PersonControllerCreateTest.php | 31 ------------------- 1 file changed, 31 deletions(-) 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