diff --git a/Tests/Controller/AccompanyingPeriodControllerTest.php b/Tests/Controller/AccompanyingPeriodControllerTest.php index 6cf2d8cb7..1d2abd882 100644 --- a/Tests/Controller/AccompanyingPeriodControllerTest.php +++ b/Tests/Controller/AccompanyingPeriodControllerTest.php @@ -113,8 +113,9 @@ class AccompanyingPeriodControllerTest extends WebTestCase private function getLastValueOnClosingMotive(\Symfony\Component\DomCrawler\Form $form) { - return end($form->get(self::CLOSING_MOTIVE_INPUT) - ->availableOptionValues()); + $values = $form->get(self::CLOSING_MOTIVE_INPUT) + ->availableOptionValues(); + return end($values); } private function getRandomClosingMotive()