‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest:

Public Member Functions

 properSiteConfigurationLoadsPageRouter ()
 
 properSiteConfigurationLoadsPageRouterWithRedirect ()
 
 properSiteConfigurationLoadsPageRouterWithRedirectWithoutTrailingSlash ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
TypoScriptFrontendController AccessibleObjectInterface $controller
 
RequestHandlerInterface $responseOutputHandler
 
PageResolver AccessibleObjectInterface $subject
 

Detailed Description

Definition at line 37 of file PageResolverTest.php.

Member Function Documentation

◆ properSiteConfigurationLoadsPageRouter()

TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest::properSiteConfigurationLoadsPageRouter ( )

◆ properSiteConfigurationLoadsPageRouterWithRedirect()

TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest::properSiteConfigurationLoadsPageRouterWithRedirect ( )

Ensures that a request with a trailing slash will be redirect to one without a trailing slash because the page slug does have a trailing slash.

Test:

Definition at line 130 of file PageResolverTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest\$subject, and TYPO3\CMS\Frontend\Middleware\PageResolver\process().

◆ properSiteConfigurationLoadsPageRouterWithRedirectWithoutTrailingSlash()

TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest::properSiteConfigurationLoadsPageRouterWithRedirectWithoutTrailingSlash ( )

Ensures that a request without a trailing slash will be redirect to one with a trailing slash because the page slug does not have a trailing slash.

Test:

Definition at line 170 of file PageResolverTest.php.

References TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest\$subject, and TYPO3\CMS\Frontend\Middleware\PageResolver\process().

◆ setUp()

TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest::setUp ( )
protected

Definition at line 55 of file PageResolverTest.php.

Member Data Documentation

◆ $controller

TypoScriptFrontendController AccessibleObjectInterface TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest::$controller
protected

Definition at line 45 of file PageResolverTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 41 of file PageResolverTest.php.

◆ $responseOutputHandler

RequestHandlerInterface TYPO3\CMS\Frontend\Tests\Unit\Middleware\PageResolverTest::$responseOutputHandler
protected

Definition at line 49 of file PageResolverTest.php.

◆ $subject