Neos\FluidAdaptor\Tests\Unit\View\TemplatePathsTest::expandGenericPathPatternWorksWithSubpackageAndBubblingDisabledAndFormatNotOptional PHP Метод

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

    public function expandGenericPathPatternWorksWithSubpackageAndBubblingDisabledAndFormatNotOptional()
    {
        $options = ['templateRootPaths' => ['Resources/Private/']];
        /** @var TemplatePaths $templatePaths */
        $templatePaths = $this->getAccessibleMock(TemplatePaths::class, null, [$options], '', true);
        $actual = $templatePaths->_call('expandGenericPathPattern', '@templateRoot/Templates/@subpackage/@controller/@action.@format', ['subPackageKey' => 'MySubPackage', 'controllerName' => 'My', 'format' => 'html'], false, false);
        $expected = ['Resources/Private/Templates/MySubPackage/My/@action.html'];
        $this->assertEquals($expected, $actual);
    }