public getLastModified ( array $users, $imageIdentifier = null ) | ||
$users | array |
/** * @covers Imbo\Database\MongoDB::getLastModified * @expectedException Imbo\Exception\DatabaseException * @expectedExceptionMessage Unable to fetch image data * @expectedExceptionCode 500 */ public function testThrowsExceptionWhenMongoFailsDuringGetLastModified() { $this->imageCollection->expects($this->once())->method('find')->will($this->throwException(new MongoException())); $this->driver->getLastModified(['key']); }