public function testEnsureIndexes()
{
foreach ($this->documentCollections as $class => $collection) {
if (in_array($class, $this->indexedClasses)) {
$collection->expects($this->once())->method('ensureIndex');
} else {
$collection->expects($this->never())->method('ensureIndex');
}
}
$this->schemaManager->ensureIndexes();
}