use Symfony\Component\Form\ChoiceList\View\ChoiceView;
use Symfony\Component\Form\Exception\LogicException;
use Symfony\Component\Intl\Util\IntlTestHelper;
class TimezoneTypeTest extends BaseTypeTestCase
{ public const TESTED_TYPE = 'Symfony\Component\Form\Extension\Core\Type\TimezoneType';
public function testTimezonesAreSelectable() { $choices =
$this->factory->
create(static::TESTED_TYPE
) ->
createView()->vars
['choices'
];
$this->
assertContainsEquals(new ChoiceView('Africa/Kinshasa', 'Africa/Kinshasa', 'Africa / Kinshasa'
),
$choices);
$this->
assertContainsEquals(new ChoiceView('America/New_York', 'America/New_York', 'America / New York'
),
$choices);
} public function testSubmitNull($expected = null,
$norm = null,
$view = null
) { parent::
testSubmitNull($expected,
$norm, ''
);
} public function testSubmitNullUsesDefaultEmptyData($emptyData = 'Africa/Kinshasa',
$expectedData = 'Africa/Kinshasa'
) {