eZ\Bundle\EzPublishDebugBundle\Tests\Collector\EzPublishCoreCollectorTest::testGetPanelTemplate PHP Method

testGetPanelTemplate() public method

    public function testGetPanelTemplate()
    {
        $collector = $this->getMock('\\Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface');
        $name = 'foobar';
        $collector->expects($this->once())->method('getName')->will($this->returnValue($name));
        $panelTemplate = 'toolbar.html.twig';
        $this->mainCollector->addCollector($collector, $panelTemplate, 'foo');
        $this->assertSame($panelTemplate, $this->mainCollector->getPanelTemplate($name));
    }