Add some tests

This commit is contained in:
Jeremy
2015-03-08 22:47:32 +01:00
parent 6894d48e03
commit d0c2243b10
2 changed files with 46 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class SecurityController extends Controller
$user = $this->getDoctrine()->getRepository('WallabagCoreBundle:User')->findOneByConfirmationToken($token);
if (null === $user) {
$this->createNotFoundException(sprintf('No user found with token "%s"', $token));
throw $this->createNotFoundException(sprintf('No user found with token "%s"', $token));
}
$form = $this->createForm(new ResetPasswordType());