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