TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 settersAndGettersWorkAsExpected ()
 
 uriForPrefixesArgumentsWithExtensionAndPluginNameAndSetsControllerArgument ()
 
 uriForRecursivelyMergesAndOverrulesControllerArgumentsWithArguments ()
 
 uriForOnlySetsActionArgumentIfSpecified ()
 
 uriForSetsControllerFromRequestIfControllerIsNotSet ()
 
 uriForSetsExtensionNameFromRequestIfExtensionNameIsNotSet ()
 
 uriForSetsPluginNameFromRequestIfPluginNameIsNotSet ()
 
 uriForDoesNotDisableCacheHashForNonCacheableActions ()
 
 buildBackendUriKeepsQueryParametersIfAddQueryStringIsSet ()
 
 buildBackendUriKeepsQueryParametersIfAddQueryStringMethodIsNotSet ()
 
 buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSetDataProvider ()
 
 buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSet (array $parameters, array $postArguments, array $excluded, $expected)
 
 buildBackendUriKeepsModuleQueryParametersIfAddQueryStringIsNotSet ()
 
 buildBackendUriMergesAndOverrulesQueryParametersWithArguments ()
 
 buildBackendUriConvertsDomainObjectsAfterArgumentsHaveBeenMerged ()
 
 buildBackendUriRespectsSection ()
 
 buildBackendUriCreatesAbsoluteUrisIfSpecified ()
 
 buildBackendUriWithQueryStringMethodPostGetMergesParameters ()
 
 buildBackendUriWithQueryStringMethodGetPostMergesParameters ()
 
 buildFrontendUriCreatesRelativeUrisByDefault ()
 
 buildFrontendUriDoesNotStripLeadingSlashesFromRelativeUris ()
 
 resetSetsAllOptionsToTheirDefaultValue ()
 
 buildTypolinkConfigurationRespectsSpecifiedTargetPageUid ()
 
 buildTypolinkConfigurationUsesCurrentPageUidIfTargetPageUidIsNotSet ()
 
 buildTypolinkConfigurationProperlySetsAdditionalArguments ()
 
 buildTypolinkConfigurationProperlySetsAddQueryString ()
 
 buildTypolinkConfigurationProperlySetsAddQueryStringMethod ()
 
 buildTypolinkConfigurationConvertsDomainObjects ()
 
 buildTypolinkConfigurationResolvesPageTypeFromFormat ()
 
 buildTypolinkConfigurationResolvesDefaultPageTypeFromFormatIfNoMappingIsConfigured ()
 
 buildTypolinkConfigurationResolvesDefaultPageTypeFromFormatIfFormatIsNotMapped ()
 
 buildTypolinkConfigurationDisablesCacheHashIfNoCacheIsSet ()
 
 buildTypolinkConfigurationDoesNotSetUseCacheHashOptionIfUseCacheHashIsDisabled ()
 
 buildTypolinkConfigurationConsidersSection ()
 
 buildTypolinkConfigurationLinkAccessRestrictedPagesSetting ()
 
 convertDomainObjectsToIdentityArraysConvertsDomainObjects ()
 
 conversionOfTansientObjectsIsInvoked ()
 
 conversionOfTansientObjectsThrowsExceptionForOtherThanValueObjects ()
 
 tansientObjectsAreConvertedToAnArrayOfProperties ()
 
 tansientObjectsAreRecursivelyConverted ()
 
 removeDefaultControllerAndActionDoesNotModifyArgumentsifSpecifiedControlerAndActionIsNotEqualToDefaults ()
 
 removeDefaultControllerAndActionRemovesControllerIfItIsEqualToTheDefault ()
 
 removeDefaultControllerAndActionRemovesActionIfItIsEqualToTheDefault ()
 
 removeDefaultControllerAndActionRemovesControllerAndActionIfBothAreEqualToTheDefault ()
 

Protected Attributes

 $mockConfigurationManager
 
 $mockContentObject
 
 $mockRequest
 
 $mockExtensionService
 
 $uriBuilder
 
- 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
 

Private Member Functions

 rawUrlEncodeSquareBracketsInUrl ($string)
 

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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case

Definition at line 20 of file UriBuilderTest.php.

Member Function Documentation

◆ buildBackendUriConvertsDomainObjectsAfterArgumentsHaveBeenMerged()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriConvertsDomainObjectsAfterArgumentsHaveBeenMerged ( )

◆ buildBackendUriCreatesAbsoluteUrisIfSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriCreatesAbsoluteUrisIfSpecified ( )

◆ buildBackendUriKeepsModuleQueryParametersIfAddQueryStringIsNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriKeepsModuleQueryParametersIfAddQueryStringIsNotSet ( )

◆ buildBackendUriKeepsQueryParametersIfAddQueryStringIsSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriKeepsQueryParametersIfAddQueryStringIsSet ( )

◆ buildBackendUriKeepsQueryParametersIfAddQueryStringMethodIsNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriKeepsQueryParametersIfAddQueryStringMethodIsNotSet ( )

◆ buildBackendUriMergesAndOverrulesQueryParametersWithArguments()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriMergesAndOverrulesQueryParametersWithArguments ( )

◆ buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSet ( array  $parameters,
array  $postArguments,
array  $excluded,
  $expected 
)
Test:
buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSetDataProvider

Definition at line 268 of file UriBuilderTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GETset().

◆ buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSetDataProvider()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriRemovesSpecifiedQueryParametersIfArgumentsToBeExcludedFromQueryStringIsSetDataProvider ( )

return array

Definition at line 193 of file UriBuilderTest.php.

◆ buildBackendUriRespectsSection()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriRespectsSection ( )

◆ buildBackendUriWithQueryStringMethodGetPostMergesParameters()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriWithQueryStringMethodGetPostMergesParameters ( )

◆ buildBackendUriWithQueryStringMethodPostGetMergesParameters()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildBackendUriWithQueryStringMethodPostGetMergesParameters ( )

◆ buildFrontendUriCreatesRelativeUrisByDefault()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildFrontendUriCreatesRelativeUrisByDefault ( )
Test:

Definition at line 424 of file UriBuilderTest.php.

◆ buildFrontendUriDoesNotStripLeadingSlashesFromRelativeUris()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildFrontendUriDoesNotStripLeadingSlashesFromRelativeUris ( )

◆ buildTypolinkConfigurationConsidersSection()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationConsidersSection ( )
Test:

Definition at line 670 of file UriBuilderTest.php.

◆ buildTypolinkConfigurationConvertsDomainObjects()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationConvertsDomainObjects ( )

◆ buildTypolinkConfigurationDisablesCacheHashIfNoCacheIsSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationDisablesCacheHashIfNoCacheIsSet ( )
Test:

Definition at line 648 of file UriBuilderTest.php.

◆ buildTypolinkConfigurationDoesNotSetUseCacheHashOptionIfUseCacheHashIsDisabled()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationDoesNotSetUseCacheHashOptionIfUseCacheHashIsDisabled ( )
Test:

Definition at line 659 of file UriBuilderTest.php.

◆ buildTypolinkConfigurationLinkAccessRestrictedPagesSetting()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationLinkAccessRestrictedPagesSetting ( )
Test:

Definition at line 681 of file UriBuilderTest.php.

◆ buildTypolinkConfigurationProperlySetsAdditionalArguments()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationProperlySetsAdditionalArguments ( )
Test:

Definition at line 533 of file UriBuilderTest.php.

◆ buildTypolinkConfigurationProperlySetsAddQueryString()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationProperlySetsAddQueryString ( )
Test:

Definition at line 544 of file UriBuilderTest.php.

◆ buildTypolinkConfigurationProperlySetsAddQueryStringMethod()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationProperlySetsAddQueryStringMethod ( )
Test:

Definition at line 555 of file UriBuilderTest.php.

◆ buildTypolinkConfigurationResolvesDefaultPageTypeFromFormatIfFormatIsNotMapped()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationResolvesDefaultPageTypeFromFormatIfFormatIsNotMapped ( )

◆ buildTypolinkConfigurationResolvesDefaultPageTypeFromFormatIfNoMappingIsConfigured()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationResolvesDefaultPageTypeFromFormatIfNoMappingIsConfigured ( )

◆ buildTypolinkConfigurationResolvesPageTypeFromFormat()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationResolvesPageTypeFromFormat ( )

◆ buildTypolinkConfigurationRespectsSpecifiedTargetPageUid()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationRespectsSpecifiedTargetPageUid ( )
Test:

Definition at line 512 of file UriBuilderTest.php.

References $GLOBALS.

◆ buildTypolinkConfigurationUsesCurrentPageUidIfTargetPageUidIsNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::buildTypolinkConfigurationUsesCurrentPageUidIfTargetPageUidIsNotSet ( )
Test:

Definition at line 523 of file UriBuilderTest.php.

References $GLOBALS.

◆ conversionOfTansientObjectsIsInvoked()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::conversionOfTansientObjectsIsInvoked ( )

◆ conversionOfTansientObjectsThrowsExceptionForOtherThanValueObjects()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::conversionOfTansientObjectsThrowsExceptionForOtherThanValueObjects ( )

◆ convertDomainObjectsToIdentityArraysConvertsDomainObjects()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::convertDomainObjectsToIdentityArraysConvertsDomainObjects ( )

◆ rawUrlEncodeSquareBracketsInUrl()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::rawUrlEncodeSquareBracketsInUrl (   $string)
private

◆ removeDefaultControllerAndActionDoesNotModifyArgumentsifSpecifiedControlerAndActionIsNotEqualToDefaults()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::removeDefaultControllerAndActionDoesNotModifyArgumentsifSpecifiedControlerAndActionIsNotEqualToDefaults ( )
Test:

Definition at line 784 of file UriBuilderTest.php.

◆ removeDefaultControllerAndActionRemovesActionIfItIsEqualToTheDefault()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::removeDefaultControllerAndActionRemovesActionIfItIsEqualToTheDefault ( )
Test:

Definition at line 812 of file UriBuilderTest.php.

◆ removeDefaultControllerAndActionRemovesControllerAndActionIfBothAreEqualToTheDefault()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::removeDefaultControllerAndActionRemovesControllerAndActionIfBothAreEqualToTheDefault ( )
Test:

Definition at line 826 of file UriBuilderTest.php.

◆ removeDefaultControllerAndActionRemovesControllerIfItIsEqualToTheDefault()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::removeDefaultControllerAndActionRemovesControllerIfItIsEqualToTheDefault ( )
Test:

Definition at line 798 of file UriBuilderTest.php.

◆ resetSetsAllOptionsToTheirDefaultValue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::resetSetsAllOptionsToTheirDefaultValue ( )
Test:

Definition at line 491 of file UriBuilderTest.php.

◆ settersAndGettersWorkAsExpected()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::settersAndGettersWorkAsExpected ( )
Test:

Definition at line 68 of file UriBuilderTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::setUp ( )

◆ tansientObjectsAreConvertedToAnArrayOfProperties()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::tansientObjectsAreConvertedToAnArrayOfProperties ( )

◆ tansientObjectsAreRecursivelyConverted()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::tansientObjectsAreRecursivelyConverted ( )

◆ uriForDoesNotDisableCacheHashForNonCacheableActions()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::uriForDoesNotDisableCacheHashForNonCacheableActions ( )
Test:

Definition at line 156 of file UriBuilderTest.php.

◆ uriForOnlySetsActionArgumentIfSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::uriForOnlySetsActionArgumentIfSpecified ( )
Test:

Definition at line 113 of file UriBuilderTest.php.

◆ uriForPrefixesArgumentsWithExtensionAndPluginNameAndSetsControllerArgument()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::uriForPrefixesArgumentsWithExtensionAndPluginNameAndSetsControllerArgument ( )
Test:

Definition at line 89 of file UriBuilderTest.php.

References $GLOBALS.

◆ uriForRecursivelyMergesAndOverrulesControllerArgumentsWithArguments()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::uriForRecursivelyMergesAndOverrulesControllerArgumentsWithArguments ( )
Test:

Definition at line 100 of file UriBuilderTest.php.

◆ uriForSetsControllerFromRequestIfControllerIsNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::uriForSetsControllerFromRequestIfControllerIsNotSet ( )
Test:

Definition at line 123 of file UriBuilderTest.php.

◆ uriForSetsExtensionNameFromRequestIfExtensionNameIsNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::uriForSetsExtensionNameFromRequestIfExtensionNameIsNotSet ( )
Test:

Definition at line 134 of file UriBuilderTest.php.

◆ uriForSetsPluginNameFromRequestIfPluginNameIsNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::uriForSetsPluginNameFromRequestIfPluginNameIsNotSet ( )
Test:

Definition at line 145 of file UriBuilderTest.php.

Member Data Documentation

◆ $mockConfigurationManager

◆ $mockContentObject

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::$mockContentObject
protected

Definition at line 30 of file UriBuilderTest.php.

◆ $mockExtensionService

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::$mockExtensionService
protected

Definition at line 40 of file UriBuilderTest.php.

◆ $mockRequest

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\UriBuilderTest::$mockRequest
protected

Definition at line 35 of file UriBuilderTest.php.

◆ $uriBuilder