From d069bff4f606be75c47a3415f2a5af13d6f04865 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 30 May 2017 07:56:41 +0200 Subject: [PATCH] Remove unknown validation_groups The Profile validation_groups does not exist and then for validation to be skipped (like password length) --- src/Wallabag/UserBundle/Controller/ManageController.php | 4 +--- tests/Wallabag/UserBundle/Controller/ManageControllerTest.php | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Wallabag/UserBundle/Controller/ManageController.php b/src/Wallabag/UserBundle/Controller/ManageController.php index 1c5c86d45..084f2c67e 100644 --- a/src/Wallabag/UserBundle/Controller/ManageController.php +++ b/src/Wallabag/UserBundle/Controller/ManageController.php @@ -33,9 +33,7 @@ class ManageController extends Controller // enable created user by default $user->setEnabled(true); - $form = $this->createForm('Wallabag\UserBundle\Form\NewUserType', $user, [ - 'validation_groups' => ['Profile'], - ]); + $form = $this->createForm('Wallabag\UserBundle\Form\NewUserType', $user); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { diff --git a/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php b/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php index 44b9a0301..b46256a6e 100644 --- a/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php +++ b/tests/Wallabag/UserBundle/Controller/ManageControllerTest.php @@ -30,8 +30,8 @@ class ManageControllerTest extends WallabagCoreTestCase $form = $crawler->selectButton('user.form.save')->form(array( 'new_user[username]' => 'test_user', 'new_user[email]' => 'test@test.io', - 'new_user[plainPassword][first]' => 'test', - 'new_user[plainPassword][second]' => 'test', + 'new_user[plainPassword][first]' => 'testtest', + 'new_user[plainPassword][second]' => 'testtest', )); $client->submit($form);