From 9fadc5d9c5a1aa1c68e9e52517532d433f39dab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 5 Feb 2015 14:35:22 +0100 Subject: [PATCH] passing last value on closing motive by reference refs #411 --- Tests/Controller/AccompanyingPeriodControllerTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()