From 10da02f9ba06b77e93b9868e58404485dbe86d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 7 Dec 2014 23:15:48 +0100 Subject: [PATCH] fix last test --- Tests/Controller/PersonControllerTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tests/Controller/PersonControllerTest.php b/Tests/Controller/PersonControllerTest.php index e9bb14dee..6f8927d1e 100644 --- a/Tests/Controller/PersonControllerTest.php +++ b/Tests/Controller/PersonControllerTest.php @@ -142,13 +142,18 @@ class PersonControllerTest extends WebTestCase 'A message is shown if gender is not set'); } + /** + * + * @param Form $form + * @depends testAddAPersonPage + */ public function testValidForm(Form $form) { $this->fillAValidCreationForm($form); $client = $this->getAuthenticatedClient(); $client->submit($form); - $this->assertTrue($client->isRedirection(), + $this->assertTrue($client->getResponse()->isRedirect(), "a valid form redirect to url /{_locale}/person/{personId}/general/edit"); $client->followRedirect(); $this->assertRegExpl('^/fr/person/[0-9]*/general/edit',