PHP Class Neos\FluidAdaptor\Tests\Unit\View\TemplatePathsTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Public Methods

Method Description
expandGenericPathPatternDataProvider ( )
expandGenericPathPatternTests ( string $package, string $subPackage, string $controller, string $format, string $templateRootPath, array $templateRootPaths = null, string $partialRootPath, array $partialRootPaths = null, string $layoutRootPath, array $layoutRootPaths = null, boolean $bubbleControllerAndSubpackage, boolean $formatIsOptional, string $pattern, string $expectedResult )
expandGenericPathPatternWorksWithBubblingDisabledAndFormatNotOptional ( )
expandGenericPathPatternWorksWithSubpackageAndBubblingDisabledAndFormatNotOptional ( )
expandGenericPathPatternWorksWithSubpackageAndBubblingDisabledAndFormatOptional ( )
expandGenericPathPatternWorksWithSubpackageAndBubblingEnabledAndFormatOptional ( )
getLayoutPathAndFilenameThrowsExceptionIfNoPathCanBeResolved ( )
getLayoutPathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory ( )
getPartialPathAndFilenameThrowsExceptionIfNoPathCanBeResolved ( )
getPartialPathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory ( )
getTemplatePathAndFilenameThrowsExceptionIfNoPathCanBeResolved ( )
getTemplatePathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory ( )
getTemplateSourceChecksDifferentPathPatternsAndReturnsTheFirstPathWhichExists ( )
pathToPartialIsResolvedCorrectly ( )
resolveTemplatePathAndFilenameReturnsTheExplicitlyConfiguredTemplatePathAndFilename ( )

Protected Methods

Method Description
setupMockControllerContextForPathResolving ( string $packageKey, string $subPackageKey, string $controllerName, string $format ) : ControllerContext Helper to build mock controller context needed to test expandGenericPathPattern.

Method Details

expandGenericPathPatternDataProvider() public method

expandGenericPathPatternTests() public method

public expandGenericPathPatternTests ( string $package, string $subPackage, string $controller, string $format, string $templateRootPath, array $templateRootPaths = null, string $partialRootPath, array $partialRootPaths = null, string $layoutRootPath, array $layoutRootPaths = null, boolean $bubbleControllerAndSubpackage, boolean $formatIsOptional, string $pattern, string $expectedResult )
$package string
$subPackage string
$controller string
$format string
$templateRootPath string
$templateRootPaths array
$partialRootPath string
$partialRootPaths array
$layoutRootPath string
$layoutRootPaths array
$bubbleControllerAndSubpackage boolean
$formatIsOptional boolean
$pattern string
$expectedResult string

expandGenericPathPatternWorksWithBubblingDisabledAndFormatNotOptional() public method

expandGenericPathPatternWorksWithSubpackageAndBubblingDisabledAndFormatNotOptional() public method

expandGenericPathPatternWorksWithSubpackageAndBubblingDisabledAndFormatOptional() public method

expandGenericPathPatternWorksWithSubpackageAndBubblingEnabledAndFormatOptional() public method

getLayoutPathAndFilenameThrowsExceptionIfNoPathCanBeResolved() public method

getLayoutPathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory() public method

getPartialPathAndFilenameThrowsExceptionIfNoPathCanBeResolved() public method

getPartialPathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory() public method

getTemplatePathAndFilenameThrowsExceptionIfNoPathCanBeResolved() public method

getTemplatePathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory() public method

getTemplateSourceChecksDifferentPathPatternsAndReturnsTheFirstPathWhichExists() public method

pathToPartialIsResolvedCorrectly() public method

resolveTemplatePathAndFilenameReturnsTheExplicitlyConfiguredTemplatePathAndFilename() public method

setupMockControllerContextForPathResolving() protected method

Helper to build mock controller context needed to test expandGenericPathPattern.
protected setupMockControllerContextForPathResolving ( string $packageKey, string $subPackageKey, string $controllerName, string $format ) : ControllerContext
$packageKey string
$subPackageKey string
$controllerName string
$format string
return Neos\Flow\Mvc\Controller\ControllerContext