‪TYPO3CMS  ‪main
TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest:
TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait

Public Member Functions

 linkForRedirectToAccessRestrictedPageIsBuild ()
 
 checkReponseCodeOnRedirect ($url, $statusCode, $targetUrl, $redirectUid)
 
 checkRegExpRedirects (string $url, int $expectedStatusCode, string $expectedRedirectUri, int $expectedRedirectUid)
 
 regexpWithNoParamRegexpAndRespectingGetParameteresIssuesNotFoundStatusIfParamsAreGivenInUrl ()
 
 regexpWithNoParamRegexpAndRespectingGetParameteresRedirectsIfNoParamsAreGiven ()
 
 samePathWithSameDomainT3Target (string $url, string $baseUri, int $expectedStatusCode, ?string $expectedRedirectUri, ?int $expectedRedirectUid)
 
 samePathWithSameDomainAndRelativeTarget (string $url, string $baseUri, int $expectedStatusCode, ?string $expectedRedirectUri, ?int $expectedRedirectUid)
 
 samePathRedirectsWithExternalTarget (string $url, string $baseUri, int $expectedStatusCode, ?string $expectedRedirectUri, ?int $expectedRedirectUid)
 
 beforeRedirectMatchDomainEventIsTriggered ()
 
 regExpRedirectsWithArgumentMatchesWithSimilarRegExpWithoutQueryParamInRecord (string $importDataSet, string $url, int $statusCode, int $redirectUid, string $targetUrl)
 

Static Public Member Functions

static redirectsDataProvider ()
 
static checkRegExpRedirectsDataProvider ()
 
static samePathWithSameDomainT3TargetDataProvider ()
 
static samePathWithSameDomainAndRelativeTargetDataProvider ()
 
static samePathRedirectsWithExternalTargetDataProvider ()
 
static regExpRedirectsWithArgumentMatchesWithSimilarRegExpWithoutQueryParamInRecordDataProvider ()
 

Protected Member Functions

 setUp ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
 writeSiteConfiguration (string $identifier, array $site=[], array $languages=[], array $errorHandling=[])
 
 mergeSiteConfiguration (string $identifier, array $overrides)
 
 buildSiteConfiguration (int $rootPageId, string $base='')
 
 buildDefaultLanguageConfiguration (string $identifier, string $base)
 
 buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
 
 buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
 applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
 mergeInstruction (AbstractInstruction $current, AbstractInstruction $other)
 

Protected Attributes

const LANGUAGE_PRESETS
 
array $coreExtensionsToLoad = ['redirects']
 
array $configurationToUseInTestInstance
 

Additional Inherited Members

- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
static failIfArrayIsNotEmpty (array $items)
 

Detailed Description

Definition at line 43 of file RedirectServiceTest.php.

Member Function Documentation

◆ beforeRedirectMatchDomainEventIsTriggered()

◆ checkRegExpRedirects()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::checkRegExpRedirects ( string  $url,
int  $expectedStatusCode,
string  $expectedRedirectUri,
int  $expectedRedirectUid 
)

◆ checkRegExpRedirectsDataProvider()

static TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::checkRegExpRedirectsDataProvider ( )
static

Definition at line 172 of file RedirectServiceTest.php.

◆ checkReponseCodeOnRedirect()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::checkReponseCodeOnRedirect (   $url,
  $statusCode,
  $targetUrl,
  $redirectUid 
)

◆ linkForRedirectToAccessRestrictedPageIsBuild()

◆ redirectsDataProvider()

static TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::redirectsDataProvider ( )
static

Definition at line 122 of file RedirectServiceTest.php.

◆ regExpRedirectsWithArgumentMatchesWithSimilarRegExpWithoutQueryParamInRecord()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::regExpRedirectsWithArgumentMatchesWithSimilarRegExpWithoutQueryParamInRecord ( string  $importDataSet,
string  $url,
int  $statusCode,
int  $redirectUid,
string  $targetUrl 
)

◆ regExpRedirectsWithArgumentMatchesWithSimilarRegExpWithoutQueryParamInRecordDataProvider()

static TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::regExpRedirectsWithArgumentMatchesWithSimilarRegExpWithoutQueryParamInRecordDataProvider ( )
static

Definition at line 897 of file RedirectServiceTest.php.

◆ regexpWithNoParamRegexpAndRespectingGetParameteresIssuesNotFoundStatusIfParamsAreGivenInUrl()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::regexpWithNoParamRegexpAndRespectingGetParameteresIssuesNotFoundStatusIfParamsAreGivenInUrl ( )

◆ regexpWithNoParamRegexpAndRespectingGetParameteresRedirectsIfNoParamsAreGiven()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::regexpWithNoParamRegexpAndRespectingGetParameteresRedirectsIfNoParamsAreGiven ( )

◆ samePathRedirectsWithExternalTarget()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::samePathRedirectsWithExternalTarget ( string  $url,
string  $baseUri,
int  $expectedStatusCode,
?string  $expectedRedirectUri,
?int  $expectedRedirectUid 
)

◆ samePathRedirectsWithExternalTargetDataProvider()

static TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::samePathRedirectsWithExternalTargetDataProvider ( )
static

Definition at line 680 of file RedirectServiceTest.php.

◆ samePathWithSameDomainAndRelativeTarget()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::samePathWithSameDomainAndRelativeTarget ( string  $url,
string  $baseUri,
int  $expectedStatusCode,
?string  $expectedRedirectUri,
?int  $expectedRedirectUid 
)

◆ samePathWithSameDomainAndRelativeTargetDataProvider()

static TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::samePathWithSameDomainAndRelativeTargetDataProvider ( )
static

Definition at line 537 of file RedirectServiceTest.php.

◆ samePathWithSameDomainT3Target()

TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::samePathWithSameDomainT3Target ( string  $url,
string  $baseUri,
int  $expectedStatusCode,
?string  $expectedRedirectUri,
?int  $expectedRedirectUid 
)

◆ samePathWithSameDomainT3TargetDataProvider()

static TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::samePathWithSameDomainT3TargetDataProvider ( )
static

Definition at line 379 of file RedirectServiceTest.php.

◆ setUp()

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

Definition at line 62 of file RedirectServiceTest.php.

Member Data Documentation

◆ $configurationToUseInTestInstance

array TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::$configurationToUseInTestInstance
protected
Initial value:
= [
'FE' => [
'cacheHash' => [
'excludedParameters' => ['L', 'pk_campaign', 'pk_kwd', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'gclid', 'fbclid', 'msclkid'],
'enforceValidation' => false,
],
],
]

Definition at line 52 of file RedirectServiceTest.php.

◆ $coreExtensionsToLoad

array TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::$coreExtensionsToLoad = ['redirects']
protected

Definition at line 50 of file RedirectServiceTest.php.

◆ LANGUAGE_PRESETS

const TYPO3\CMS\Redirects\Tests\Functional\Service\RedirectServiceTest::LANGUAGE_PRESETS
protected
Initial value:
= [
'EN' => ['id' => 0, 'title' => 'English', 'locale' => 'en_US.UTF8'],
]

Definition at line 46 of file RedirectServiceTest.php.