Adldap\Laravel\Tests\DatabaseProviderTest::test_config_password_sync_enabled PHP Method

test_config_password_sync_enabled() public method

    public function test_config_password_sync_enabled()
    {
        $this->app['config']->set('adldap_auth.password_sync', true);
        $email = '[email protected]';
        $password = '12345';
        $this->test_auth_passes(compact('email', 'password'));
        $user = EloquentUser::first();
        $this->assertInstanceOf(EloquentUser::class, $user);
        // This check will pass due to password synchronization being enabled.
        $this->assertTrue(Hash::check($password, $user->password));
    }