Neos\Neos\Tests\Functional\Fusion\RenderingTest::prototypeInheritance PHP Метод

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

    public function prototypeInheritance()
    {
        $output = $this->simulateRendering('Test_PrototypeInheritance.fusion');
        $this->assertSelectEquals('.teaser > .neos-contentcollection > .typo3-neos-nodetypes-headline > div > h1', 'Static Headline', true, $output);
        $this->assertSelectEquals('.main > .neos-contentcollection > .typo3-neos-nodetypes-headline > div > h1', 'Static Headline', true, $output);
        // header is now wrapped in h3 (as set in the concrete template), AND is set to a static headline (as set in the abstract template)
        $this->assertSelectEquals('.sidebar > .neos-contentcollection > .typo3-neos-nodetypes-headline > div > h1', 'Static Headline', true, $output);
        $this->assertSelectEquals('.sidebar > .neos-contentcollection > .typo3-neos-nodetypes-text > div', 'Below, you\'ll see the most recent activity', true, $output);
    }