mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 01:21:03 +00:00
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:
parent
5709ecb368
commit
d069bff4f6
2 changed files with 3 additions and 5 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue