Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function _getValidationRulesBeforeSave()
 {
     return $this->validatorPool->get($this->getType());
 }
Example #2
0
 public function testGetDefaultValidator()
 {
     $this->assertEquals($this->defaultValidatorMock, $this->pool->get('default'));
 }