eZ\Bundle\EzPublishIOBundle\Tests\DependencyInjection\Compiler\IOConfigurationPassTest::testMetadataHandler PHP Method

testMetadataHandler() public method

public testMetadataHandler ( )
    public function testMetadataHandler()
    {
        $this->container->setParameter('ez_io.metadata_handlers', array('my_handler' => array('name' => 'my_handler', 'type' => 'test_handler')));
        $this->metadataConfigurationFactoryMock->expects($this->once())->method('getParentServiceId')->will($this->returnValue('test.io.metadata_handler.test_handler'));
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithParent('test.io.metadata_handler.test_handler.my_handler', 'test.io.metadata_handler.test_handler');
    }