passing last value on closing motive by reference

refs #411
This commit is contained in:
Julien Fastré 2015-02-05 14:35:22 +01:00
parent 69042c683f
commit 9fadc5d9c5

View File

@ -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()