From e3cc76c689daba46d2769713c8d0ce34393f9d39 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Tue, 27 Apr 2021 14:59:35 +0200 Subject: [PATCH] tests/ChillPersonBundle: use type casting --- .../Tests/Controller/PersonControllerCreateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php index 5ab77ee24..c49c0ea97 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php @@ -137,7 +137,7 @@ class PersonControllerCreateTest extends WebTestCase $client = $this->client; $client->submit($form); - $this->assertTrue($client->getResponse()->isRedirect(), + $this->assertTrue((bool)$client->getResponse()->isRedirect(), "a valid form redirect to url /{_locale}/person/{personId}/general/edit"); $client->followRedirect();