AuthBucket\Bundle\OAuth2Bundle\Tests\ResourceType\ResourceTypeHandlerFactoryTest::testGoodGetResourceTypeHandler PHP Method

testGoodGetResourceTypeHandler() public method

    public function testGoodGetResourceTypeHandler()
    {
        $classes = ['bar' => 'AuthBucket\\Bundle\\OAuth2Bundle\\Tests\\ResourceType\\BarResourceTypeHandler'];
        $factory = new ResourceTypeHandlerFactory($this->get('http_kernel'), $this->get('authbucket_oauth2.model_manager.factory'), $classes);
        $handler = $factory->getResourceTypeHandler('bar');
        $this->assertSame($factory->getResourceTypeHandlers(), $classes);
    }