1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-02 16:38:38 +00:00

fix tests for FosUser

This commit is contained in:
Nicolas Lœuillet 2015-08-25 16:29:22 +02:00
parent a1691859ca
commit 3f7a62908c
3 changed files with 16 additions and 17 deletions

View file

@ -65,7 +65,7 @@ class ConfigController extends Controller
}
// handle changing user information
$userForm = $this->createForm(new UserInformationType(), $user);
$userForm = $this->createForm(new UserInformationType(), $user, array('validation_groups' => array('Profile')));
$userForm->handleRequest($request);
if ($userForm->isValid()) {
@ -98,7 +98,7 @@ class ConfigController extends Controller
// handle adding new user
$newUser = new User();
$newUserForm = $this->createForm(new NewUserType(), $newUser);
$newUserForm = $this->createForm(new NewUserType(), $newUser, array('validation_groups' => array('Profile')));
$newUserForm->handleRequest($request);
if ($newUserForm->isValid()) {