deleteMetadata() 공개 메소드

public deleteMetadata ( $user, $imageIdentifier )
예제 #1
0
파일: MongoDBTest.php 프로젝트: imbo/imbo
 /**
  * @covers Imbo\Database\MongoDB::deleteMetadata
  * @expectedException Imbo\Exception\DatabaseException
  * @expectedExceptionMessage Unable to delete meta data
  * @expectedExceptionCode 500
  */
 public function testThrowsExceptionWhenMongoFailsDuringDeleteMetadata()
 {
     $this->imageCollection->expects($this->once())->method('findOne')->will($this->throwException(new MongoException()));
     $this->driver->deleteMetadata('key', 'identifier');
 }