AuthBucket\Bundle\OAuth2Bundle\Tests\GrantType\GrantTypeHandlerFactoryTest::testGoodGetGrantTypeHandler PHP Метод

testGoodGetGrantTypeHandler() публичный Метод

    public function testGoodGetGrantTypeHandler()
    {
        $classes = ['bar' => 'AuthBucket\\Bundle\\OAuth2Bundle\\Tests\\GrantType\\BarGrantTypeHandler'];
        $factory = new GrantTypeHandlerFactory($this->get('security.token_storage'), $this->get('security.encoder_factory'), $this->get('validator'), $this->get('authbucket_oauth2.model_manager.factory'), $this->get('authbucket_oauth2.token_handler.factory'), null, $classes);
        $handler = $factory->getGrantTypeHandler('bar');
        $this->assertSame($factory->getGrantTypeHandlers(), $classes);
    }