Alcaeus\MongoDbAdapter\Tests\TestCase::getCollection PHP Method

getCollection() protected method

protected getCollection ( string $name = 'test', MongoDB $database = null ) : MongoCollection
$name string
$database MongoDB
return MongoCollection
    protected function getCollection($name = 'test', \MongoDB $database = null)
    {
        if ($database === null) {
            $database = $this->getDatabase();
        }
        return $database->selectCollection($name);
    }