예제 #1
0
 /**
  * @return ValidationContainer
  */
 protected function createValidationContainer()
 {
     $recordValidationContainer = new ValidationContainer();
     $fieldTypeValidator = $this->createConfiguredFieldTypeValidator();
     $recordValidationContainer->addValidator(ValidationContainer::VALIDATOR_FIELD, $fieldTypeValidator);
     $recordValidationContainer->addValidator(ValidationContainer::VALIDATOR_UNIQUE_CONSTRAINT, new UniqueRecordValidator());
     return $recordValidationContainer;
 }
예제 #2
0
 /**
  * @param string $check
  */
 private function givenIHaveDisabledTheCheck($check)
 {
     $this->container->addDisabledCheck($check);
 }