Remove unknown validation_groups

The Profile validation_groups does not exist and then for validation to be skipped (like password length)
This commit is contained in:
Jeremy Benoist 2017-05-30 07:56:41 +02:00
parent 5709ecb368
commit d069bff4f6
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 3 additions and 5 deletions

View file

@ -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()) {

View file

@ -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);