From 2c96c022612800a8c03247e4bf83f0736979d943 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Tue, 20 Apr 2021 10:07:27 +0200 Subject: [PATCH] tests/ChillPersonBundle: the gender input has three options: man, women and undefined --- .../Tests/Controller/PersonControllerCreateTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php index bc901e587..81eea1b15 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php @@ -93,9 +93,9 @@ class PersonControllerCreateTest extends WebTestCase $genderType = $form->get(self::GENDER_INPUT); $this->assertEquals('radio', $genderType->getType(), - 'The gender input has two radio button: man and women'); - $this->assertEquals(2, count($genderType->availableOptionValues()), - 'The gender input has two radio button: man and women'); + 'The gender input has radio buttons'); + $this->assertEquals(3, count($genderType->availableOptionValues()), + 'The gender input has three options: man, women and undefined'); $this->assertTrue(in_array('man', $genderType->availableOptionValues()), 'gender has "homme" option'); $this->assertTrue(in_array('woman', $genderType->availableOptionValues()),