public function testFindAll()
{
// add doc
$document = $this->collection->createDocument(array('some-field' => 'some-value'));
$document->save();
// find
$documents = $this->collection->find()->where('some-field', 'some-value');
$firstDocument = current($documents->findAll());
$this->assertEquals($firstDocument->getId(), $document->getId());
}