From fdc5127c74ff0be3828c4bb0fc989010d28eca6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 8 Dec 2021 11:57:16 +0100 Subject: [PATCH] fix some error in test (wip) --- .../Tests/Controller/AccompanyingCourseApiControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php index bcee2941a..cfd126ad2 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php @@ -388,7 +388,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase $this->assertTrue(in_array($this->client->getResponse()->getStatusCode(), [200, 422], true)); - if ($response->getStatusCode() === 422) { + if ($this->client->getResponse()->getStatusCode() === 422) { $this->markTestSkipped('the next tests should appears only on valid accompanying period'); } @@ -522,7 +522,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase $this->assertTrue(in_array($this->client->getResponse()->getStatusCode(), [200, 422], true)); - if ($response->getStatusCode() === 422) { + if ($this->client->getResponse()->getStatusCode() === 422) { $this->markTestSkipped('the next tests should appears only on valid accompanying period'); }