eZ\Bundle\EzPublishDebugBundle\Tests\Collector\EzPublishCoreCollectorTest::testGetToolbarTemplateNothing PHP Метод

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

    public function testGetToolbarTemplateNothing()
    {
        $collector = $this->getMock('\\Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface');
        $name = 'foobar';
        $collector->expects($this->once())->method('getName')->will($this->returnValue($name));
        $this->mainCollector->addCollector($collector);
        $this->assertNull($this->mainCollector->getToolbarTemplate($name));
    }