TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FrontendLoginControllerTest Class Reference
Inheritance diagram for FrontendLoginControllerTest:
UnitTestCase BaseTestCase

Public Member Functions

 typo3SitePathEqualsStubSitePath ()
 
 typo3SiteUrlEqualsStubSiteUrl ()
 
 typo3SitePathEqualsStubSitePathAfterChangingInTest ()
 
 typo3SiteUrlEqualsStubSiteUrlAfterChangingInTest ()
 
 validateRedirectUrlClearsUrlDataProvider ()
 
 validateRedirectUrlClearsUrl ($url)
 
 validateRedirectUrlKeepsCleanUrlDataProvider ()
 
 validateRedirectUrlKeepsCleanUrl ($url)
 
 validateRedirectUrlClearsInvalidUrlInSubdirectoryDataProvider ()
 
 validateRedirectUrlClearsInvalidUrlInSubdirectory ($url)
 
 validateRedirectUrlKeepsCleanUrlInSubdirectoryDataProvider ()
 
 validateRedirectUrlKeepsCleanUrlInSubdirectory ($url)
 
 getPreserveGetVarsReturnsCorrectResultDataProvider ()
 
 getPreserveGetVarsReturnsCorrectResult (array $getArray, $preserveVars, $expected)
 
 isInCurrentDomainIgnoresSchemeDataProvider ()
 
 isInCurrentDomainIgnoresScheme ($host, $https, $url)
 
 isInCurrentDomainReturnsFalseIfDomainsAreDifferentDataProvider ()
 
 isInCurrentDomainReturnsFalseIfDomainsAreDifferent ($host, $url)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 setUpFakeSitePathAndHost ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $accessibleFixture
 
 $testHostName
 
 $testSitePath
 
 $testTableName
 
 $singletonInstances
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 30 of file FrontendLoginControllerTest.php.

Member Function Documentation

getPreserveGetVarsReturnsCorrectResult ( array  $getArray,
  $preserveVars,
  $expected 
)
Test:
getPreserveGetVarsReturnsCorrectResultDataProvider
Parameters
array$getArray
string$preserveVars
string$expected
Returns
void

Definition at line 418 of file FrontendLoginControllerTest.php.

getPreserveGetVarsReturnsCorrectResultDataProvider ( )
Returns
array

Definition at line 315 of file FrontendLoginControllerTest.php.

isInCurrentDomainIgnoresScheme (   $host,
  $https,
  $url 
)
Test:
isInCurrentDomainIgnoresSchemeDataProvider
Parameters
string$host$_SERVER['HTTP_HOST']
string$https$_SERVER['HTTPS']
string$urlThe url to test

Definition at line 467 of file FrontendLoginControllerTest.php.

isInCurrentDomainIgnoresSchemeDataProvider ( )

Dataprovider for isInCurrentDomainIgnoresScheme

Returns
array

Definition at line 434 of file FrontendLoginControllerTest.php.

isInCurrentDomainReturnsFalseIfDomainsAreDifferent (   $host,
  $url 
)
Test:
isInCurrentDomainReturnsFalseIfDomainsAreDifferentDataProvider
Parameters
string$host$_SERVER['HTTP_HOST']
string$urlThe url to test

Definition at line 497 of file FrontendLoginControllerTest.php.

isInCurrentDomainReturnsFalseIfDomainsAreDifferentDataProvider ( )
Returns
array

Definition at line 477 of file FrontendLoginControllerTest.php.

tearDown ( )
protected
typo3SitePathEqualsStubSitePath ( )
Test:

Definition at line 136 of file FrontendLoginControllerTest.php.

References GeneralUtility\getIndpEnv().

typo3SitePathEqualsStubSitePathAfterChangingInTest ( )
typo3SiteUrlEqualsStubSiteUrl ( )
Test:

Definition at line 144 of file FrontendLoginControllerTest.php.

References GeneralUtility\getIndpEnv().

typo3SiteUrlEqualsStubSiteUrlAfterChangingInTest ( )
validateRedirectUrlClearsInvalidUrlInSubdirectory (   $url)
Test:
validateRedirectUrlClearsInvalidUrlInSubdirectoryDataProvider
Parameters
string$urlInvalid Url

Definition at line 268 of file FrontendLoginControllerTest.php.

References FrontendLoginControllerTest\setUpFakeSitePathAndHost().

validateRedirectUrlClearsInvalidUrlInSubdirectoryDataProvider ( )

Data provider for validateRedirectUrlClearsInvalidUrlInSubdirectory

Returns
array

Definition at line 249 of file FrontendLoginControllerTest.php.

validateRedirectUrlClearsUrl (   $url)
Test:
validateRedirectUrlClearsUrlDataProvider
Parameters
string$urlInvalid Url

Definition at line 201 of file FrontendLoginControllerTest.php.

validateRedirectUrlClearsUrlDataProvider ( )

Data provider for validateRedirectUrlClearsUrl

Returns
array

Definition at line 176 of file FrontendLoginControllerTest.php.

validateRedirectUrlKeepsCleanUrl (   $url)
Test:
validateRedirectUrlKeepsCleanUrlDataProvider
Parameters
string$urlClean URL to test

Definition at line 238 of file FrontendLoginControllerTest.php.

validateRedirectUrlKeepsCleanUrlDataProvider ( )

Data provider for validateRedirectUrlKeepsCleanUrl

Returns
array

Definition at line 212 of file FrontendLoginControllerTest.php.

validateRedirectUrlKeepsCleanUrlInSubdirectory (   $url)
Test:
validateRedirectUrlKeepsCleanUrlInSubdirectoryDataProvider
Parameters
string$urlInvalid Url

Definition at line 300 of file FrontendLoginControllerTest.php.

References FrontendLoginControllerTest\setUpFakeSitePathAndHost().

validateRedirectUrlKeepsCleanUrlInSubdirectoryDataProvider ( )

Data provider for validateRedirectUrlKeepsCleanUrlInSubdirectory

Returns
array

Definition at line 281 of file FrontendLoginControllerTest.php.

Member Data Documentation

$accessibleFixture
protected

Definition at line 35 of file FrontendLoginControllerTest.php.

$singletonInstances
protected

Definition at line 55 of file FrontendLoginControllerTest.php.

$testHostName
protected
$testSitePath
protected

Definition at line 45 of file FrontendLoginControllerTest.php.

$testTableName
protected

Definition at line 50 of file FrontendLoginControllerTest.php.