public function testGetImagesWithNoQuery()
{
list($start, $end) = $this->insertImages();
// Empty query
$query = new Query();
$model = $this->getMock('Imbo\\Model\\Images');
$model->expects($this->once())->method('setHits')->with(6);
$images = $this->adapter->getImages(['user'], $query, $model);
$this->assertCount(6, $images);
}