MongolidLaravel\MongolidServiceProviderTest::testShouldRegisterConnector PHP Method

testShouldRegisterConnector() public method

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