예제 #1
0
 /**
  * @expectedException Gedmo\Exception\InvalidMappingException
  */
 public function test_validateField_ifFieldIsNotOfAValidTypeThrowException()
 {
     $this->meta->expects($this->once())->method('getFieldMapping')->will($this->returnValue(array('type' => 'someType')));
     Validator::validateField($this->meta, 'someField', Validator::UPLOADABLE_FILE_MIME_TYPE, Validator::$validFileMimeTypeTypes);
 }