Neos\FluidAdaptor\Tests\Unit\View\TemplatePathsTest::expandGenericPathPatternWorksWithBubblingDisabledAndFormatNotOptional PHP Method

expandGenericPathPatternWorksWithBubblingDisabledAndFormatNotOptional() public method

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