mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
tests/ChillPersonBundle: the gender input has three options: man, women and undefined
This commit is contained in:
parent
53813f8f29
commit
2c96c02261
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user