public function testUpdateDocumentIndexesShouldCreateMappedIndexes()
{
$database = $this->documentDatabases[\Documents\CmsArticle::class];
$database->expects($this->never())->method('command');
$collection = $this->documentCollections[\Documents\CmsArticle::class];
$collection->expects($this->once())->method('getIndexInfo')->will($this->returnValue(array()));
$collection->expects($this->once())->method('ensureIndex');
$collection->expects($this->any())->method('getDatabase')->will($this->returnValue($database));
$this->schemaManager->updateDocumentIndexes(\Documents\CmsArticle::class);
}