TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 tearDown ()
 
 objectManagerCallback ($className)
 
 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 ()
 

Protected Attributes

 $singletonInstances = array()
 
 $view
 
 $mockRenderingContext
 
 $mockViewHelperVariableContainer
 
 $mockControllerContext
 
 $mockTemplateParser
 
 $mockObjectManager
 
 $mockRequest
 
 $mockUriBuilder
 
 $mockParsedTemplate
 
 $mockConfigurationManager
 
 $mockFlashMessageContainer
 
 $mockContentObject
 
 $mockTemplateCompiler
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

Test case

Definition at line 31 of file StandaloneViewTest.php.

Member Function Documentation

◆ constructorCreatesContentObjectIfItIsNotSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::constructorCreatesContentObjectIfItIsNotSpecified ( )
Test:

Definition at line 190 of file StandaloneViewTest.php.

◆ constructorInjectsRequestToControllerContext()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::constructorInjectsRequestToControllerContext ( )
Test:

Definition at line 224 of file StandaloneViewTest.php.

◆ constructorInjectsRequestToUriBuilder()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::constructorInjectsRequestToUriBuilder ( )
Test:

Definition at line 216 of file StandaloneViewTest.php.

◆ constructorInjectsUriBuilderToControllerContext()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::constructorInjectsUriBuilderToControllerContext ( )
Test:

Definition at line 232 of file StandaloneViewTest.php.

◆ constructorSetsBaseUri()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::constructorSetsBaseUri ( )

◆ constructorSetsRequestUri()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::constructorSetsRequestUri ( )

◆ getLayoutPathAndFilenameFindsUpperCasedLayoutName()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameFindsUpperCasedLayoutName ( )
Test:

Definition at line 540 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameResolvesTheDefaultFile()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameResolvesTheDefaultFile ( )
Test:

Definition at line 563 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameResolvesTheDefaultFileWithNumericIndices()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameResolvesTheDefaultFileWithNumericIndices ( )
Test:

Definition at line 590 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameResolvesTheSpecificFile()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameResolvesTheSpecificFile ( )
Test:

Definition at line 550 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameResolvesTheSpecificFileWithNumericIndices()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameResolvesTheSpecificFileWithNumericIndices ( )
Test:

Definition at line 576 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameRespectsCasingOfLayoutName()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameRespectsCasingOfLayoutName ( )
Test:

Definition at line 528 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameThrowsExceptionIfNoFileWasFound()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameThrowsExceptionIfNoFileWasFound ( )
Test:
1288092555

Definition at line 606 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameWalksNumericalIndicesInDescendingOrder()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameWalksNumericalIndicesInDescendingOrder ( )
Test:

Definition at line 730 of file StandaloneViewTest.php.

◆ getLayoutPathAndFilenameWalksStringKeysInReversedOrder()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutPathAndFilenameWalksStringKeysInReversedOrder ( )
Test:

Definition at line 768 of file StandaloneViewTest.php.

◆ getLayoutRootPathReturnsDefaultPathIfNoLayoutRootPathIsSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutRootPathReturnsDefaultPathIfNoLayoutRootPathIsSpecified ( )
Test:

Definition at line 327 of file StandaloneViewTest.php.

◆ getLayoutRootPathReturnsSpecifiedLayoutRootPathByDefault()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutRootPathReturnsSpecifiedLayoutRootPathByDefault ( )
Test:

Definition at line 301 of file StandaloneViewTest.php.

◆ getLayoutRootPathsReturnsDefaultPathIfNoLayoutRootPathIsSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutRootPathsReturnsDefaultPathIfNoLayoutRootPathIsSpecified ( )
Test:

Definition at line 338 of file StandaloneViewTest.php.

◆ getLayoutRootPathsReturnsSpecifiedLayoutRootPathByDefault()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutRootPathsReturnsSpecifiedLayoutRootPathByDefault ( )
Test:

Definition at line 313 of file StandaloneViewTest.php.

◆ getLayoutRootPathsThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutRootPathsThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified ( )
Test:

Definition at line 294 of file StandaloneViewTest.php.

◆ getLayoutRootPathThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutRootPathThrowsExceptionIfLayoutRootPathAndTemplatePathAreNotSpecified ( )
Test:

Definition at line 286 of file StandaloneViewTest.php.

◆ getLayoutSourceReturnsContentOfDefaultLayoutFileIfNoLayoutExistsForTheSpecifiedFormat()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutSourceReturnsContentOfDefaultLayoutFileIfNoLayoutExistsForTheSpecifiedFormat ( )

◆ getLayoutSourceReturnsContentOfLayoutFileForTheDefaultFormat()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutSourceReturnsContentOfLayoutFileForTheDefaultFormat ( )

◆ getLayoutSourceReturnsContentOfLayoutFileForTheSpecifiedFormat()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutSourceReturnsContentOfLayoutFileForTheSpecifiedFormat ( )

◆ getLayoutSourceThrowsExceptionIfLayoutFileDoesNotExist()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutSourceThrowsExceptionIfLayoutFileDoesNotExist ( )
Test:

Definition at line 368 of file StandaloneViewTest.php.

◆ getLayoutSourceThrowsExceptionIfLayoutRootPathDoesNotExist()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutSourceThrowsExceptionIfLayoutRootPathDoesNotExist ( )
Test:

Definition at line 350 of file StandaloneViewTest.php.

◆ getLayoutSourceThrowsExceptionIfLayoutRootPathsDoesNotExist()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getLayoutSourceThrowsExceptionIfLayoutRootPathsDoesNotExist ( )
Test:

Definition at line 359 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameFindsUpperCasedPartialName()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameFindsUpperCasedPartialName ( )
Test:

Definition at line 632 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameResolvesTheDefaultFile()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameResolvesTheDefaultFile ( )
Test:

Definition at line 655 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameResolvesTheDefaultFileWithNumericIndices()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameResolvesTheDefaultFileWithNumericIndices ( )
Test:

Definition at line 682 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameResolvesTheSpecificFile()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameResolvesTheSpecificFile ( )
Test:

Definition at line 642 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameResolvesTheSpecificFileWithNumericIndices()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameResolvesTheSpecificFileWithNumericIndices ( )
Test:

Definition at line 668 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameRespectsCasingOfPartialName()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameRespectsCasingOfPartialName ( )
Test:

Definition at line 620 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameThrowsExceptionIfNoFileWasFound()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameThrowsExceptionIfNoFileWasFound ( )
Test:
1288092556

Definition at line 698 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameWalksNumericalIndicesInDescendingOrder()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameWalksNumericalIndicesInDescendingOrder ( )
Test:

Definition at line 711 of file StandaloneViewTest.php.

◆ getPartialPathAndFilenameWalksStringKeysInReversedOrder()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialPathAndFilenameWalksStringKeysInReversedOrder ( )
Test:

Definition at line 749 of file StandaloneViewTest.php.

◆ getPartialRootPathReturnsDefaultPathIfNoPartialRootPathIsSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialRootPathReturnsDefaultPathIfNoPartialRootPathIsSpecified ( )
Test:

Definition at line 437 of file StandaloneViewTest.php.

◆ getPartialRootPathReturnsSpecifiedPartialRootPathByDefault()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialRootPathReturnsSpecifiedPartialRootPathByDefault ( )
Test:

Definition at line 425 of file StandaloneViewTest.php.

◆ getPartialRootPathThrowsExceptionIfPartialRootPathAndTemplatePathAreNotSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialRootPathThrowsExceptionIfPartialRootPathAndTemplatePathAreNotSpecified ( )
Test:

Definition at line 418 of file StandaloneViewTest.php.

◆ getPartialSourceReturnsContentOfDefaultPartialFileIfNoPartialExistsForTheSpecifiedFormat()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialSourceReturnsContentOfDefaultPartialFileIfNoPartialExistsForTheSpecifiedFormat ( )
Test:

Definition at line 493 of file StandaloneViewTest.php.

◆ getPartialSourceReturnsContentOfPartialFileForTheDefaultFormat()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialSourceReturnsContentOfPartialFileForTheDefaultFormat ( )
Test:

Definition at line 467 of file StandaloneViewTest.php.

◆ getPartialSourceReturnsContentOfPartialFileForTheSpecifiedFormat()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialSourceReturnsContentOfPartialFileForTheSpecifiedFormat ( )
Test:

Definition at line 480 of file StandaloneViewTest.php.

◆ getPartialSourceThrowsExceptionIfPartialFileDoesNotExist()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialSourceThrowsExceptionIfPartialFileDoesNotExist ( )
Test:

Definition at line 458 of file StandaloneViewTest.php.

◆ getPartialSourceThrowsExceptionIfPartialRootPathDoesNotExist()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::getPartialSourceThrowsExceptionIfPartialRootPathDoesNotExist ( )
Test:

Definition at line 449 of file StandaloneViewTest.php.

◆ objectManagerCallback()

◆ renderLoadsSpecifiedTemplateFileAndPassesSourceToTemplateParser()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::renderLoadsSpecifiedTemplateFileAndPassesSourceToTemplateParser ( )

◆ renderPassesSpecifiedTemplateSourceToTemplateParser()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::renderPassesSpecifiedTemplateSourceToTemplateParser ( )
Test:

Definition at line 248 of file StandaloneViewTest.php.

◆ renderThrowsExceptionIfSpecifiedTemplateFileDoesNotExist()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::renderThrowsExceptionIfSpecifiedTemplateFileDoesNotExist ( )
Test:

Definition at line 269 of file StandaloneViewTest.php.

◆ renderThrowsExceptionIfTemplateIsNotSpecified()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::renderThrowsExceptionIfTemplateIsNotSpecified ( )
Test:

Definition at line 241 of file StandaloneViewTest.php.

◆ setFormatSetsRequestFormat()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::setFormatSetsRequestFormat ( )
Test:

Definition at line 277 of file StandaloneViewTest.php.

◆ setLayoutRootPathsOverridesValuesSetBySetLayoutRootPath()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::setLayoutRootPathsOverridesValuesSetBySetLayoutRootPath ( )
Test:

Definition at line 517 of file StandaloneViewTest.php.

◆ setPartialRootPathsOverridesValueSetBySetPartialRootPath()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::setPartialRootPathsOverridesValueSetBySetPartialRootPath ( )
Test:

Definition at line 506 of file StandaloneViewTest.php.

◆ tearDown()

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::tearDown ( )

Member Data Documentation

◆ $mockConfigurationManager

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockConfigurationManager
protected

◆ $mockContentObject

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockContentObject
protected

◆ $mockControllerContext

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockControllerContext
protected

◆ $mockFlashMessageContainer

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockFlashMessageContainer
protected

◆ $mockObjectManager

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockObjectManager
protected

Definition at line 66 of file StandaloneViewTest.php.

◆ $mockParsedTemplate

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockParsedTemplate
protected

Definition at line 81 of file StandaloneViewTest.php.

◆ $mockRenderingContext

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockRenderingContext
protected

◆ $mockRequest

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockRequest
protected

◆ $mockTemplateCompiler

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockTemplateCompiler
protected

◆ $mockTemplateParser

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockTemplateParser
protected

◆ $mockUriBuilder

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockUriBuilder
protected

◆ $mockViewHelperVariableContainer

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$mockViewHelperVariableContainer
protected

Definition at line 51 of file StandaloneViewTest.php.

◆ $singletonInstances

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$singletonInstances = array()
protected

Definition at line 36 of file StandaloneViewTest.php.

◆ $view

TYPO3\CMS\Fluid\Tests\Unit\View\StandaloneViewTest::$view
protected

Definition at line 41 of file StandaloneViewTest.php.