registerConnector() public method

Register MongoDbConnector within the application.
public registerConnector ( ) : void
return void
 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);
 }