From 8c3f8d8806e27ec16f0b315845568f8503ef5b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 14 Oct 2021 14:29:27 +0200 Subject: [PATCH] try to handle the center input by using default value --- .../Tests/Controller/PersonControllerCreateTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php index 087d05b9d..6eabc6658 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php @@ -177,9 +177,11 @@ class PersonControllerCreateTest extends WebTestCase $this->assertTrue($form->has(self::CENTER_INPUT), 'The page contains a "center" input'); $centerInput = $form->get(self::CENTER_INPUT); + /* $availableValues = $centerInput->availableOptionValues(); $lastCenterInputValue = end($availableValues); $centerInput->setValue($lastCenterInputValue); + */ $client->submit($form);