‪TYPO3CMS  ‪main
TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest:

Public Member Functions

 matchRedirectReturnsNullIfNoRedirectsExist ()
 
 matchRedirectReturnsRedirectOnFlatMatch (string $path='')
 
 matchRedirectReturnsRedirectOnRespectQueryParametersMatch ()
 
 matchRedirectReturnsRedirectOnRespectQueryParametersMatchWithSlash ()
 
 matchRedirectReturnsRedirectOnFullRespectQueryParametersMatch ()
 
 matchRedirectReturnsNullOnPartialRespectQueryParametersMatch ()
 
 matchRedirectReturnsMatchingRedirectWithMatchingQueryParametersOverMatchingPath ()
 
 matchRedirectReturnsRedirectSpecificToDomainOnFlatMatchIfSpecificAndNonSpecificExist ()
 
 matchRedirectReturnsRedirectOnRegexMatch ()
 
 matchRedirectReturnsOnlyActiveRedirects ()
 
 getTargetUrlReturnsNullIfUrlCouldNotBeResolved ()
 
 getTargetUrlReturnsUrlForTypeUrl ()
 
 getTargetUrlReturnsUrlForTypeFile ()
 
 getTargetUrlReturnsUrlForTypeFolder ()
 
 getTargetUrlRespectsForceHttps ()
 
 getTargetUrlAddsExistingQueryParams ()
 
 getTargetUrlRespectsAdditionalParametersFromTypolink ()
 
 getTargetUrlReplaceRegExpCaptureGroup ()
 
 getTargetUrlWithQueryReplaceRegExpCaptureGroup (string $redirectSourcePath, string $redirectTarget, string $requestUri, string $expectedRedirectUri)
 
 getTargetUrlWithQueryAndSlashReplaceRegExpCaptureGroup (string $redirectSourcePath, string $redirectTarget, string $requestUri, string $expectedRedirectUri)
 

Static Public Member Functions

static matchRedirectReturnsRedirectOnFlatMatchDataProvider ()
 
static getTargetUrlWithQueryReplaceRegExpCaptureGroupDataProvider ()
 
static getTargetUrlWithQueryAndSlashReplaceRegExpCaptureGroupDataProvider ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
MockObject &RedirectCacheService $redirectCacheServiceMock
 
MockObject &LinkService $linkServiceMock
 
RedirectService $redirectService
 
MockObject &SiteFinder $siteFinder
 
MockObject &RedirectRepository $redirectRepository
 

Detailed Description

Definition at line 48 of file RedirectServiceTest.php.

Member Function Documentation

◆ getTargetUrlAddsExistingQueryParams()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlAddsExistingQueryParams ( )

◆ getTargetUrlReplaceRegExpCaptureGroup()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlReplaceRegExpCaptureGroup ( )

◆ getTargetUrlRespectsAdditionalParametersFromTypolink()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlRespectsAdditionalParametersFromTypolink ( )

◆ getTargetUrlRespectsForceHttps()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlRespectsForceHttps ( )

◆ getTargetUrlReturnsNullIfUrlCouldNotBeResolved()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlReturnsNullIfUrlCouldNotBeResolved ( )

Definition at line 481 of file RedirectServiceTest.php.

◆ getTargetUrlReturnsUrlForTypeFile()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlReturnsUrlForTypeFile ( )

◆ getTargetUrlReturnsUrlForTypeFolder()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlReturnsUrlForTypeFolder ( )

◆ getTargetUrlReturnsUrlForTypeUrl()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlReturnsUrlForTypeUrl ( )

◆ getTargetUrlWithQueryAndSlashReplaceRegExpCaptureGroup()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlWithQueryAndSlashReplaceRegExpCaptureGroup ( string  $redirectSourcePath,
string  $redirectTarget,
string  $requestUri,
string  $expectedRedirectUri 
)

◆ getTargetUrlWithQueryAndSlashReplaceRegExpCaptureGroupDataProvider()

static TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlWithQueryAndSlashReplaceRegExpCaptureGroupDataProvider ( )
static

Definition at line 782 of file RedirectServiceTest.php.

◆ getTargetUrlWithQueryReplaceRegExpCaptureGroup()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlWithQueryReplaceRegExpCaptureGroup ( string  $redirectSourcePath,
string  $redirectTarget,
string  $requestUri,
string  $expectedRedirectUri 
)

◆ getTargetUrlWithQueryReplaceRegExpCaptureGroupDataProvider()

static TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::getTargetUrlWithQueryReplaceRegExpCaptureGroupDataProvider ( )
static

Definition at line 702 of file RedirectServiceTest.php.

◆ matchRedirectReturnsMatchingRedirectWithMatchingQueryParametersOverMatchingPath()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsMatchingRedirectWithMatchingQueryParametersOverMatchingPath ( )

Definition at line 301 of file RedirectServiceTest.php.

◆ matchRedirectReturnsNullIfNoRedirectsExist()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsNullIfNoRedirectsExist ( )

Definition at line 89 of file RedirectServiceTest.php.

◆ matchRedirectReturnsNullOnPartialRespectQueryParametersMatch()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsNullOnPartialRespectQueryParametersMatch ( )

Definition at line 266 of file RedirectServiceTest.php.

◆ matchRedirectReturnsOnlyActiveRedirects()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsOnlyActiveRedirects ( )

Definition at line 437 of file RedirectServiceTest.php.

◆ matchRedirectReturnsRedirectOnFlatMatch()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsRedirectOnFlatMatch ( string  $path = '')

Definition at line 103 of file RedirectServiceTest.php.

◆ matchRedirectReturnsRedirectOnFlatMatchDataProvider()

static TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsRedirectOnFlatMatchDataProvider ( )
static

Definition at line 136 of file RedirectServiceTest.php.

◆ matchRedirectReturnsRedirectOnFullRespectQueryParametersMatch()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsRedirectOnFullRespectQueryParametersMatch ( )

Definition at line 231 of file RedirectServiceTest.php.

◆ matchRedirectReturnsRedirectOnRegexMatch()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsRedirectOnRegexMatch ( )

Definition at line 402 of file RedirectServiceTest.php.

◆ matchRedirectReturnsRedirectOnRespectQueryParametersMatch()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsRedirectOnRespectQueryParametersMatch ( )

Definition at line 161 of file RedirectServiceTest.php.

◆ matchRedirectReturnsRedirectOnRespectQueryParametersMatchWithSlash()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsRedirectOnRespectQueryParametersMatchWithSlash ( )

Definition at line 196 of file RedirectServiceTest.php.

◆ matchRedirectReturnsRedirectSpecificToDomainOnFlatMatchIfSpecificAndNonSpecificExist()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::matchRedirectReturnsRedirectSpecificToDomainOnFlatMatchIfSpecificAndNonSpecificExist ( )

Definition at line 352 of file RedirectServiceTest.php.

◆ setUp()

TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::setUp ( )
protected

Definition at line 60 of file RedirectServiceTest.php.

References $GLOBALS.

Member Data Documentation

◆ $linkServiceMock

MockObject& LinkService TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::$linkServiceMock
protected

Definition at line 53 of file RedirectServiceTest.php.

◆ $redirectCacheServiceMock

MockObject& RedirectCacheService TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::$redirectCacheServiceMock
protected

Definition at line 52 of file RedirectServiceTest.php.

◆ $redirectRepository

MockObject& RedirectRepository TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::$redirectRepository
protected

Definition at line 58 of file RedirectServiceTest.php.

◆ $redirectService

RedirectService TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::$redirectService
protected

◆ $resetSingletonInstances

bool TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::$resetSingletonInstances = true
protected

Definition at line 50 of file RedirectServiceTest.php.

◆ $siteFinder

MockObject& SiteFinder TYPO3\CMS\Redirects\Tests\Unit\Service\RedirectServiceTest::$siteFinder
protected

Definition at line 57 of file RedirectServiceTest.php.