TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StandaloneViewTest Class Reference
Inheritance diagram for StandaloneViewTest:

Public Member Functions

 objectManagerCallback ($className)
 
 constructorSetsSpecifiedContentObject ()
 
 constructorCreatesContentObjectIfItIsNotSpecified ()
 
 constructorSetsRequestUri ()
 
 constructorSetsBaseUri ()
 
 constructorInjectsRequestToUriBuilder ()
 
 constructorInjectsRequestToControllerContext ()
 
 constructorInjectsUriBuilderToControllerContext ()
 
 renderThrowsExceptionIfTemplateIsNotSpecified ()
 
 renderPassesSpecifiedTemplateSourceToTemplateParser ()
 
 renderLoadsSpecifiedTemplateFileAndPassesSourceToTemplateParser ()
 
 renderThrowsExceptionIfSpecifiedTemplateFileDoesNotExist ()
 
 setFormatSetsRequestFormat ()
 
 getLayoutRootPathThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified ()
 
 getLayoutRootPathsThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified ()
 
 getLayoutRootPathReturnsSpecifiedLayoutRootPathByDefault ()
 
 getLayoutRootPathsReturnsSpecifiedLayoutRootPathByDefault ()
 
 getLayoutRootPathReturnsDefaultPathIfNoLayoutRootPathIsSpecified ()
 
 getLayoutRootPathsReturnsDefaultPathIfNoLayoutRootPathIsSpecified ()
 
 getLayoutSourceThrowsExceptionIfLayoutRootPathDoesNotExist ()
 
 getLayoutSourceThrowsExceptionIfLayoutRootPathsDoesNotExist ()
 
 getLayoutSourceThrowsExceptionIfLayoutFileDoesNotExist ()
 
 getLayoutSourceReturnsContentOfLayoutFileForTheDefaultFormat ()
 
 getLayoutSourceReturnsContentOfLayoutFileForTheSpecifiedFormat ()
 
 getLayoutSourceReturnsContentOfDefaultLayoutFileIfNoLayoutExistsForTheSpecifiedFormat ()
 
 getPartialRootPathThrowsExceptionIfPartialRootPathAndTemplatePathAreNotSpecified ()
 
 getPartialRootPathReturnsSpecifiedPartialRootPathByDefault ()
 
 getPartialRootPathReturnsDefaultPathIfNoPartialRootPathIsSpecified ()
 
 getPartialSourceThrowsExceptionIfPartialRootPathDoesNotExist ()
 
 getPartialSourceThrowsExceptionIfPartialFileDoesNotExist ()
 
 getPartialSourceReturnsContentOfPartialFileForTheDefaultFormat ()
 
 getPartialSourceReturnsContentOfPartialFileForTheSpecifiedFormat ()
 
 getPartialSourceReturnsContentOfDefaultPartialFileIfNoPartialExistsForTheSpecifiedFormat ()
 
 setPartialRootPathsOverridesValueSetBySetPartialRootPath ()
 
 setLayoutRootPathsOverridesValuesSetBySetLayoutRootPath ()
 
 getLayoutPathAndFilenameRespectsCasingOfLayoutName ()
 
 getLayoutPathAndFilenameFindsUpperCasedLayoutName ()
 
 getLayoutPathAndFilenameResolvesTheSpecificFile ()
 
 getLayoutPathAndFilenameResolvesTheDefaultFile ()
 
 getLayoutPathAndFilenameResolvesTheSpecificFileWithNumericIndices ()
 
 getLayoutPathAndFilenameResolvesTheDefaultFileWithNumericIndices ()
 
 getLayoutPathAndFilenameThrowsExceptionIfNoFileWasFound ()
 
 getPartialPathAndFilenameRespectsCasingOfPartialName ()
 
 getPartialPathAndFilenameFindsUpperCasedPartialName ()
 
 getPartialPathAndFilenameResolvesTheSpecificFile ()
 
 getPartialPathAndFilenameResolvesTheDefaultFile ()
 
 getPartialPathAndFilenameResolvesTheSpecificFileWithNumericIndices ()
 
 getPartialPathAndFilenameResolvesTheDefaultFileWithNumericIndices ()
 
 getPartialPathAndFilenameThrowsExceptionIfNoFileWasFound ()
 
 getPartialPathAndFilenameWalksNumericalIndicesInDescendingOrder ()
 
 getLayoutPathAndFilenameWalksNumericalIndicesInDescendingOrder ()
 
 getPartialPathAndFilenameWalksStringKeysInReversedOrder ()
 
 getLayoutPathAndFilenameWalksStringKeysInReversedOrder ()
 
 setTemplateThrowsExceptionIfNoTemplateRootPathsAreSet ()
 
 setTemplateThrowsExceptionIfSpecifiedTemplateNameDoesNotExist ()
 
 setTemplateRespectsCasingOfTemplateName ()
 
 setTemplateSetsUpperCasedTemplateName ()
 
 setTemplateResolvesTheSpecificTemplateFile ()
 
 setTemplateResolvesTheDefaultTemplateFile ()
 
 setTemplateResolvesTemplateNameWithPath ()
 
 setTemplateResolvesTheSpecificFileWithNumericIndices ()
 
 setTemplateResolvesTheDefaultFileWithNumericIndices ()
 
 setTemplateWalksNumericalIndicesInDescendingOrder ()
 
 setTemplateWalksStringKeysInReversedOrder ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

 $singletonInstances = array()
 
 $view
 
 $mockRenderingContext
 
 $mockViewHelperVariableContainer
 
 $mockControllerContext
 
 $mockTemplateParser
 
 $mockObjectManager
 
 $mockRequest
 
 $mockUriBuilder
 
 $mockParsedTemplate
 
 $mockConfigurationManager
 
 $mockContentObject
 
 $mockTemplateCompiler
 

Detailed Description

Test case

Definition at line 38 of file StandaloneViewTest.php.

Member Function Documentation

constructorCreatesContentObjectIfItIsNotSpecified ( )
Test:

Definition at line 191 of file StandaloneViewTest.php.

constructorInjectsRequestToControllerContext ( )
Test:

Definition at line 229 of file StandaloneViewTest.php.

constructorInjectsRequestToUriBuilder ( )
Test:

Definition at line 220 of file StandaloneViewTest.php.

constructorInjectsUriBuilderToControllerContext ( )
Test:

Definition at line 238 of file StandaloneViewTest.php.

constructorSetsBaseUri ( )
Test:

Definition at line 210 of file StandaloneViewTest.php.

References GeneralUtility\getIndpEnv().

constructorSetsRequestUri ( )
Test:

Definition at line 200 of file StandaloneViewTest.php.

References GeneralUtility\getIndpEnv().

constructorSetsSpecifiedContentObject ( )
Test:

Definition at line 181 of file StandaloneViewTest.php.

References StandaloneViewTest\$mockContentObject.

getLayoutPathAndFilenameFindsUpperCasedLayoutName ( )
Test:

Definition at line 576 of file StandaloneViewTest.php.

getLayoutPathAndFilenameResolvesTheDefaultFile ( )
Test:

Definition at line 601 of file StandaloneViewTest.php.

getLayoutPathAndFilenameResolvesTheDefaultFileWithNumericIndices ( )
Test:

Definition at line 630 of file StandaloneViewTest.php.

getLayoutPathAndFilenameResolvesTheSpecificFile ( )
Test:

Definition at line 587 of file StandaloneViewTest.php.

getLayoutPathAndFilenameResolvesTheSpecificFileWithNumericIndices ( )
Test:

Definition at line 615 of file StandaloneViewTest.php.

getLayoutPathAndFilenameRespectsCasingOfLayoutName ( )
Test:

Definition at line 563 of file StandaloneViewTest.php.

getLayoutPathAndFilenameThrowsExceptionIfNoFileWasFound ( )
Test:
1288092555

Definition at line 647 of file StandaloneViewTest.php.

getLayoutPathAndFilenameWalksNumericalIndicesInDescendingOrder ( )
Test:

Definition at line 779 of file StandaloneViewTest.php.

getLayoutPathAndFilenameWalksStringKeysInReversedOrder ( )
Test:

Definition at line 819 of file StandaloneViewTest.php.

getLayoutRootPathReturnsDefaultPathIfNoLayoutRootPathIsSpecified ( )
Test:

Definition at line 344 of file StandaloneViewTest.php.

getLayoutRootPathReturnsSpecifiedLayoutRootPathByDefault ( )
Test:

Definition at line 316 of file StandaloneViewTest.php.

getLayoutRootPathsReturnsDefaultPathIfNoLayoutRootPathIsSpecified ( )
Test:

Definition at line 356 of file StandaloneViewTest.php.

getLayoutRootPathsReturnsSpecifiedLayoutRootPathByDefault ( )
Test:

Definition at line 329 of file StandaloneViewTest.php.

getLayoutRootPathsThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified ( )
Test:

Definition at line 308 of file StandaloneViewTest.php.

getLayoutRootPathThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified ( )
Test:

Definition at line 299 of file StandaloneViewTest.php.

getLayoutSourceReturnsContentOfDefaultLayoutFileIfNoLayoutExistsForTheSpecifiedFormat ( )
Test:

Definition at line 427 of file StandaloneViewTest.php.

References GeneralUtility\fixWindowsFilePath().

getLayoutSourceReturnsContentOfLayoutFileForTheDefaultFormat ( )
Test:

Definition at line 399 of file StandaloneViewTest.php.

References GeneralUtility\fixWindowsFilePath().

getLayoutSourceReturnsContentOfLayoutFileForTheSpecifiedFormat ( )
Test:

Definition at line 413 of file StandaloneViewTest.php.

References GeneralUtility\fixWindowsFilePath().

getLayoutSourceThrowsExceptionIfLayoutFileDoesNotExist ( )
Test:

Definition at line 389 of file StandaloneViewTest.php.

getLayoutSourceThrowsExceptionIfLayoutRootPathDoesNotExist ( )
Test:

Definition at line 369 of file StandaloneViewTest.php.

getLayoutSourceThrowsExceptionIfLayoutRootPathsDoesNotExist ( )
Test:

Definition at line 379 of file StandaloneViewTest.php.

getPartialPathAndFilenameFindsUpperCasedPartialName ( )
Test:

Definition at line 674 of file StandaloneViewTest.php.

getPartialPathAndFilenameResolvesTheDefaultFile ( )
Test:

Definition at line 699 of file StandaloneViewTest.php.

getPartialPathAndFilenameResolvesTheDefaultFileWithNumericIndices ( )
Test:

Definition at line 728 of file StandaloneViewTest.php.

getPartialPathAndFilenameResolvesTheSpecificFile ( )
Test:

Definition at line 685 of file StandaloneViewTest.php.

getPartialPathAndFilenameResolvesTheSpecificFileWithNumericIndices ( )
Test:

Definition at line 713 of file StandaloneViewTest.php.

getPartialPathAndFilenameRespectsCasingOfPartialName ( )
Test:

Definition at line 661 of file StandaloneViewTest.php.

getPartialPathAndFilenameThrowsExceptionIfNoFileWasFound ( )
Test:
1288092556

Definition at line 745 of file StandaloneViewTest.php.

getPartialPathAndFilenameWalksNumericalIndicesInDescendingOrder ( )
Test:

Definition at line 759 of file StandaloneViewTest.php.

getPartialPathAndFilenameWalksStringKeysInReversedOrder ( )
Test:

Definition at line 799 of file StandaloneViewTest.php.

getPartialRootPathReturnsDefaultPathIfNoPartialRootPathIsSpecified ( )
Test:

Definition at line 464 of file StandaloneViewTest.php.

getPartialRootPathReturnsSpecifiedPartialRootPathByDefault ( )
Test:

Definition at line 451 of file StandaloneViewTest.php.

getPartialRootPathThrowsExceptionIfPartialRootPathAndTemplatePathAreNotSpecified ( )
Test:

Definition at line 443 of file StandaloneViewTest.php.

getPartialSourceReturnsContentOfDefaultPartialFileIfNoPartialExistsForTheSpecifiedFormat ( )
Test:

Definition at line 525 of file StandaloneViewTest.php.

getPartialSourceReturnsContentOfPartialFileForTheDefaultFormat ( )
Test:

Definition at line 497 of file StandaloneViewTest.php.

getPartialSourceReturnsContentOfPartialFileForTheSpecifiedFormat ( )
Test:

Definition at line 511 of file StandaloneViewTest.php.

getPartialSourceThrowsExceptionIfPartialFileDoesNotExist ( )
Test:

Definition at line 487 of file StandaloneViewTest.php.

getPartialSourceThrowsExceptionIfPartialRootPathDoesNotExist ( )
Test:

Definition at line 477 of file StandaloneViewTest.php.

objectManagerCallback (   $className)
Parameters
string$className
Returns
ConfigurationManagerInterface|TemplateParser|RenderingContext|Request|UriBuilder|ControllerContext|TemplateCompiler

Definition at line 157 of file StandaloneViewTest.php.

References StandaloneViewTest\$mockConfigurationManager, StandaloneViewTest\$mockControllerContext, StandaloneViewTest\$mockRenderingContext, StandaloneViewTest\$mockRequest, StandaloneViewTest\$mockTemplateCompiler, StandaloneViewTest\$mockTemplateParser, and StandaloneViewTest\$mockUriBuilder.

renderLoadsSpecifiedTemplateFileAndPassesSourceToTemplateParser ( )
Test:

Definition at line 266 of file StandaloneViewTest.php.

References GeneralUtility\fixWindowsFilePath().

renderPassesSpecifiedTemplateSourceToTemplateParser ( )
Test:

Definition at line 256 of file StandaloneViewTest.php.

renderThrowsExceptionIfSpecifiedTemplateFileDoesNotExist ( )
Test:

Definition at line 280 of file StandaloneViewTest.php.

renderThrowsExceptionIfTemplateIsNotSpecified ( )
Test:

Definition at line 248 of file StandaloneViewTest.php.

setFormatSetsRequestFormat ( )
Test:

Definition at line 289 of file StandaloneViewTest.php.

setLayoutRootPathsOverridesValuesSetBySetLayoutRootPath ( )
Test:

Definition at line 551 of file StandaloneViewTest.php.

setPartialRootPathsOverridesValueSetBySetPartialRootPath ( )
Test:

Definition at line 539 of file StandaloneViewTest.php.

setTemplateResolvesTemplateNameWithPath ( )
Test:

Definition at line 918 of file StandaloneViewTest.php.

setTemplateResolvesTheDefaultFileWithNumericIndices ( )
Test:

Definition at line 949 of file StandaloneViewTest.php.

setTemplateResolvesTheDefaultTemplateFile ( )
Test:

Definition at line 902 of file StandaloneViewTest.php.

setTemplateResolvesTheSpecificFileWithNumericIndices ( )
Test:

Definition at line 933 of file StandaloneViewTest.php.

setTemplateResolvesTheSpecificTemplateFile ( )
Test:

Definition at line 887 of file StandaloneViewTest.php.

setTemplateRespectsCasingOfTemplateName ( )
Test:

Definition at line 860 of file StandaloneViewTest.php.

setTemplateSetsUpperCasedTemplateName ( )
Test:

Definition at line 875 of file StandaloneViewTest.php.

setTemplateThrowsExceptionIfNoTemplateRootPathsAreSet ( )
Test:

Definition at line 840 of file StandaloneViewTest.php.

setTemplateThrowsExceptionIfSpecifiedTemplateNameDoesNotExist ( )
Test:

Definition at line 849 of file StandaloneViewTest.php.

setTemplateWalksNumericalIndicesInDescendingOrder ( )
Test:

Definition at line 965 of file StandaloneViewTest.php.

setTemplateWalksStringKeysInReversedOrder ( )
Test:

Definition at line 986 of file StandaloneViewTest.php.

setUp ( )
protected

Sets up this test case

Returns
void

Definition at line 110 of file StandaloneViewTest.php.

References GeneralUtility\addInstance(), GeneralUtility\getSingletonInstances(), and GeneralUtility\setSingletonInstance().

tearDown ( )
protected

Member Data Documentation

$mockConfigurationManager
protected

Definition at line 93 of file StandaloneViewTest.php.

Referenced by StandaloneViewTest\objectManagerCallback().

$mockContentObject
protected
$mockControllerContext
protected

Definition at line 63 of file StandaloneViewTest.php.

Referenced by StandaloneViewTest\objectManagerCallback().

$mockObjectManager
protected

Definition at line 73 of file StandaloneViewTest.php.

$mockParsedTemplate
protected

Definition at line 88 of file StandaloneViewTest.php.

$mockRenderingContext
protected

Definition at line 53 of file StandaloneViewTest.php.

Referenced by StandaloneViewTest\objectManagerCallback().

$mockRequest
protected

Definition at line 78 of file StandaloneViewTest.php.

Referenced by StandaloneViewTest\objectManagerCallback().

$mockTemplateCompiler
protected

Definition at line 103 of file StandaloneViewTest.php.

Referenced by StandaloneViewTest\objectManagerCallback().

$mockTemplateParser
protected

Definition at line 68 of file StandaloneViewTest.php.

Referenced by StandaloneViewTest\objectManagerCallback().

$mockUriBuilder
protected

Definition at line 83 of file StandaloneViewTest.php.

Referenced by StandaloneViewTest\objectManagerCallback().

$mockViewHelperVariableContainer
protected

Definition at line 58 of file StandaloneViewTest.php.

$singletonInstances = array()
protected

Definition at line 43 of file StandaloneViewTest.php.

$view
protected

Definition at line 48 of file StandaloneViewTest.php.