public function allowUnsetRequest($field) { if (empty($field['options']['choices'])) { return true; } return parent::allowUnsetRequest($field); }
/** * @dataProvider providerAllowUnsetRequest */ public function testAllowUnsetRequest($field, $allowed_unset) { $this->assertEquals($allowed_unset, $this->default_type->allowUnsetRequest($field)); }