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