diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-25 16:29:22 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-09-11 20:32:37 +0200 |
commit | 3f7a62908cc34b9d575bea5629dc0bb94e521e71 (patch) | |
tree | 0e1f987dde2e4b96050fc0c44b2fd2782843723a /src/Wallabag/CoreBundle/Controller | |
parent | a1691859ca0cb4c1b360c34b05aa74bdba9e582a (diff) | |
download | wallabag-3f7a62908cc34b9d575bea5629dc0bb94e521e71.tar.gz wallabag-3f7a62908cc34b9d575bea5629dc0bb94e521e71.tar.zst wallabag-3f7a62908cc34b9d575bea5629dc0bb94e521e71.zip |
fix tests for FosUser
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/ConfigController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 62ef3eea..73484d86 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php | |||
@@ -65,7 +65,7 @@ class ConfigController extends Controller | |||
65 | } | 65 | } |
66 | 66 | ||
67 | // handle changing user information | 67 | // handle changing user information |
68 | $userForm = $this->createForm(new UserInformationType(), $user); | 68 | $userForm = $this->createForm(new UserInformationType(), $user, array('validation_groups' => array('Profile'))); |
69 | $userForm->handleRequest($request); | 69 | $userForm->handleRequest($request); |
70 | 70 | ||
71 | if ($userForm->isValid()) { | 71 | if ($userForm->isValid()) { |
@@ -98,7 +98,7 @@ class ConfigController extends Controller | |||
98 | 98 | ||
99 | // handle adding new user | 99 | // handle adding new user |
100 | $newUser = new User(); | 100 | $newUser = new User(); |
101 | $newUserForm = $this->createForm(new NewUserType(), $newUser); | 101 | $newUserForm = $this->createForm(new NewUserType(), $newUser, array('validation_groups' => array('Profile'))); |
102 | $newUserForm->handleRequest($request); | 102 | $newUserForm->handleRequest($request); |
103 | 103 | ||
104 | if ($newUserForm->isValid()) { | 104 | if ($newUserForm->isValid()) { |