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

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

    public function expandGenericPathPatternDataProvider()
    {
        return [['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => true, 'pattern' => '@templateRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Resources/Private/Templates/Some/Sub/Package/SomeController/@action.html', 'Resources/Private/Templates/Some/Sub/Package/SomeController/@action', 'Resources/Private/Templates/Some/Sub/Package/@action.html', 'Resources/Private/Templates/Some/Sub/Package/@action', 'Resources/Private/Templates/Sub/Package/@action.html', 'Resources/Private/Templates/Sub/Package/@action', 'Resources/Private/Templates/Package/@action.html', 'Resources/Private/Templates/Package/@action', 'Resources/Private/Templates/@action.html', 'Resources/Private/Templates/@action']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates/', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => false, 'formatIsOptional' => true, 'pattern' => '@templateRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Resources/Private/Templates/Some/Sub/Package/SomeController/@action.html', 'Resources/Private/Templates/Some/Sub/Package/SomeController/@action']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'json', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => false, 'pattern' => '@partialRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Resources/Private/Partials/Some/Sub/Package/SomeController/@action.json', 'Resources/Private/Partials/Some/Sub/Package/@action.json', 'Resources/Private/Partials/Sub/Package/@action.json', 'Resources/Private/Partials/Package/@action.json', 'Resources/Private/Partials/@action.json']], ['package' => 'Some.Package', 'subPackage' => null, 'controller' => null, 'format' => 'xml', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => true, 'pattern' => '@layoutRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Resources/Private/Layouts/@action.xml', 'Resources/Private/Layouts/@action']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => null, 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => true, 'pattern' => '@templateRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Resources/Private/Templates/Some/Sub/Package/@action.html', 'Resources/Private/Templates/Some/Sub/Package/@action', 'Resources/Private/Templates/Sub/Package/@action.html', 'Resources/Private/Templates/Sub/Package/@action', 'Resources/Private/Templates/Package/@action.html', 'Resources/Private/Templates/Package/@action', 'Resources/Private/Templates/@action.html', 'Resources/Private/Templates/@action']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'xml', 'templateRootPath' => 'Resources/Private/Templates_@format', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => false, 'formatIsOptional' => true, 'pattern' => '@templateRoot/@subpackage/@controller/@action', 'expectedResult' => ['Resources/Private/Templates_xml/Some/Sub/Package/SomeController/@action', 'Resources/Private/Templates_/Some/Sub/Package/SomeController/@action']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'json', 'templateRootPath' => 'Resources/Private/Templates_@format', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => false, 'formatIsOptional' => false, 'pattern' => '@templateRoot/@subpackage/@controller/@action', 'expectedResult' => ['Resources/Private/Templates_json/Some/Sub/Package/SomeController/@action']], ['package' => 'Some.Package', 'subPackage' => null, 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Some/Root/Path/', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => true, 'pattern' => '@layoutRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Some/Root/Path/SomeController/@action.html', 'Some/Root/Path/SomeController/@action', 'Some/Root/Path/@action.html', 'Some/Root/Path/@action']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'json', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => false, 'pattern' => 'foo', 'expectedResult' => ['foo']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => ['Resources/Private/Templates', 'Some/Fallback/Path'], 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => false, 'formatIsOptional' => true, 'pattern' => '@templateRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Resources/Private/Templates/Some/Sub/Package/SomeController/@action.html', 'Resources/Private/Templates/Some/Sub/Package/SomeController/@action', 'Some/Fallback/Path/Some/Sub/Package/SomeController/@action.html', 'Some/Fallback/Path/Some/Sub/Package/SomeController/@action']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => ['Resources/Private/Templates', 'Some/Fallback/Path'], 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => false, 'pattern' => '@templateRoot/@subpackage/@controller/@action.@format', 'expectedResult' => ['Resources/Private/Templates/Some/Sub/Package/SomeController/@action.html', 'Resources/Private/Templates/Some/Sub/Package/@action.html', 'Resources/Private/Templates/Sub/Package/@action.html', 'Resources/Private/Templates/Package/@action.html', 'Resources/Private/Templates/@action.html', 'Some/Fallback/Path/Some/Sub/Package/SomeController/@action.html', 'Some/Fallback/Path/Some/Sub/Package/@action.html', 'Some/Fallback/Path/Sub/Package/@action.html', 'Some/Fallback/Path/Package/@action.html', 'Some/Fallback/Path/@action.html']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => ['Default/Resources/Path', 'Fallback/'], 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => false, 'formatIsOptional' => true, 'pattern' => '@partialRoot/@subpackage/@controller/@partial.@format', 'expectedResult' => ['Default/Resources/Path/Some/Sub/Package/SomeController/@partial.html', 'Default/Resources/Path/Some/Sub/Package/SomeController/@partial', 'Fallback/Some/Sub/Package/SomeController/@partial.html', 'Fallback/Some/Sub/Package/SomeController/@partial']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => ['Resources/Private/Templates', 'Some/Fallback/Path'], 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => ['Default/Resources/Path', 'Fallback1/', 'Fallback2'], 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => null, 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => true, 'pattern' => '@partialRoot/@controller/@subpackage/@partial', 'expectedResult' => ['Default/Resources/Path/SomeController/Some/Sub/Package/@partial', 'Default/Resources/Path/Some/Sub/Package/@partial', 'Default/Resources/Path/Sub/Package/@partial', 'Default/Resources/Path/Package/@partial', 'Default/Resources/Path/@partial', 'Fallback1/SomeController/Some/Sub/Package/@partial', 'Fallback1/Some/Sub/Package/@partial', 'Fallback1/Sub/Package/@partial', 'Fallback1/Package/@partial', 'Fallback1/@partial', 'Fallback2/SomeController/Some/Sub/Package/@partial', 'Fallback2/Some/Sub/Package/@partial', 'Fallback2/Sub/Package/@partial', 'Fallback2/Package/@partial', 'Fallback2/@partial']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => ['Resources/Private/Templates', 'Some/Fallback/Path'], 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => ['foo', 'bar'], 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => ['Default/Layout/Path', 'Fallback/Path'], 'bubbleControllerAndSubpackage' => false, 'formatIsOptional' => false, 'pattern' => '@layoutRoot/@subpackage/@controller/@layout.@format', 'expectedResult' => ['Default/Layout/Path/Some/Sub/Package/SomeController/@layout.html', 'Fallback/Path/Some/Sub/Package/SomeController/@layout.html']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => null, 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => null, 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => ['Resources/Layouts', 'Some/Fallback/Path'], 'bubbleControllerAndSubpackage' => true, 'formatIsOptional' => true, 'pattern' => 'Static/@layoutRoot/@subpackage/@controller/@layout.@format', 'expectedResult' => ['Static/Resources/Layouts/Some/Sub/Package/SomeController/@layout.html', 'Static/Resources/Layouts/Some/Sub/Package/SomeController/@layout', 'Static/Resources/Layouts/Some/Sub/Package/@layout.html', 'Static/Resources/Layouts/Some/Sub/Package/@layout', 'Static/Resources/Layouts/Sub/Package/@layout.html', 'Static/Resources/Layouts/Sub/Package/@layout', 'Static/Resources/Layouts/Package/@layout.html', 'Static/Resources/Layouts/Package/@layout', 'Static/Resources/Layouts/@layout.html', 'Static/Resources/Layouts/@layout', 'Static/Some/Fallback/Path/Some/Sub/Package/SomeController/@layout.html', 'Static/Some/Fallback/Path/Some/Sub/Package/SomeController/@layout', 'Static/Some/Fallback/Path/Some/Sub/Package/@layout.html', 'Static/Some/Fallback/Path/Some/Sub/Package/@layout', 'Static/Some/Fallback/Path/Sub/Package/@layout.html', 'Static/Some/Fallback/Path/Sub/Package/@layout', 'Static/Some/Fallback/Path/Package/@layout.html', 'Static/Some/Fallback/Path/Package/@layout', 'Static/Some/Fallback/Path/@layout.html', 'Static/Some/Fallback/Path/@layout']], ['package' => 'Some.Package', 'subPackage' => 'Some\\Sub\\Package', 'controller' => 'SomeController', 'format' => 'html', 'templateRootPath' => 'Resources/Private/Templates', 'templateRootPaths' => ['Resources/Templates', 'Templates/Fallback1', 'Templates/Fallback2'], 'partialRootPath' => 'Resources/Private/Partials', 'partialRootPaths' => ['Resources/Partials'], 'layoutRootPath' => 'Resources/Private/Layouts', 'layoutRootPaths' => ['Resources/Layouts', 'Layouts/Fallback1'], 'bubbleControllerAndSubpackage' => false, 'formatIsOptional' => true, 'pattern' => '@layoutRoot/@templateRoot/@partialRoot/@subpackage/@controller/foo', 'expectedResult' => ['Resources/Layouts/Resources/Templates/Resources/Partials/Some/Sub/Package/SomeController/foo', 'Layouts/Fallback1/Resources/Templates/Resources/Partials/Some/Sub/Package/SomeController/foo', 'Resources/Layouts/Templates/Fallback1/Resources/Partials/Some/Sub/Package/SomeController/foo', 'Layouts/Fallback1/Templates/Fallback1/Resources/Partials/Some/Sub/Package/SomeController/foo', 'Resources/Layouts/Templates/Fallback2/Resources/Partials/Some/Sub/Package/SomeController/foo', 'Layouts/Fallback1/Templates/Fallback2/Resources/Partials/Some/Sub/Package/SomeController/foo']]];
    }