Example #1
0
 public function testParent()
 {
     $this->assertSame('filter', $this->type->getParent());
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function validate($data, array $options)
 {
     return parent::validate($data, $options) && is_array($data) && isset($data['type']) && (in_array($data['type'], self::getSimpleTypes(), true) && isset($data['value']) && is_a($data['value'], $options['resource']->getModel()) || in_array($data['type'], self::getEmptyTypes(), true));
 }