public function testShouldRegisterConnectorWithUsernameAndPassword()
{
// Set
$provider = new MongolidServiceProvider($this->app);
config(['database.mongodb.default.database' => 'databaseName', 'database.mongodb.default.username' => 'us3r', 'database.mongodb.default.password' => 'p455']);
// Actions
$provider->registerConnector();
$pool = Ioc::make(Pool::class);
// Assertions
$this->assertEquals('databaseName', $pool->getConnection()->defaultDatabase);
}