deleteImage() public méthode

public deleteImage ( $user, $imageIdentifier )
Exemple #1
0
 /**
  * @covers Imbo\Database\MongoDB::deleteImage
  * @expectedException Imbo\Exception\DatabaseException
  * @expectedExceptionMessage Unable to delete image data
  * @expectedExceptionCode 500
  */
 public function testThrowsExceptionWhenMongoFailsDuringDeleteImage()
 {
     $this->imageCollection->expects($this->once())->method('findOne')->will($this->throwException(new MongoException()));
     $this->driver->deleteImage('key', 'identifier');
 }