AuthBucket\Bundle\OAuth2Bundle\Tests\ResponseType\ResponseTypeHandlerFactoryTest::testGoodGetResponseTypeHandler PHP Метод

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

    public function testGoodGetResponseTypeHandler()
    {
        $classes = ['bar' => 'AuthBucket\\Bundle\\OAuth2Bundle\\Tests\\ResponseType\\BarResponseTypeHandler'];
        $factory = new ResponseTypeHandlerFactory($this->get('security.token_storage'), $this->get('validator'), $this->get('authbucket_oauth2.model_manager.factory'), $this->get('authbucket_oauth2.token_handler.factory'), $classes);
        $handler = $factory->getResponseTypeHandler('bar');
        $this->assertSame($factory->getResponseTypeHandlers(), $classes);
    }