public function testGetCollectionInfo()
{
$document = ['foo' => 'bar'];
$this->getCollection()->insert($document);
foreach ($this->getDatabase()->getCollectionInfo() as $collectionInfo) {
if ($collectionInfo['name'] === 'test') {
$this->assertSame(['name' => 'test', 'options' => []], $collectionInfo);
return;
}
}
$this->fail('The test collection was not found');
}