PHP Class AuthenticationCookieTest, phpmyadmin

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: phpmyadmin/phpmyadmin

Protected Properties

Свойство Type Description
$object PMA\libraries\plugins\auth\AuthenticationCookie

Méthodes publiques

Méthode Description
doMockResponse ( )
secretsProvider ( ) : array Data provider for secrets splitting.
setup ( ) : void Configures global environment.
tearDown ( ) : void tearDown for test cases
testAESSecretSplit ( $secret, $mac, $aes ) : void Test for secret splitting using getMACSecret and getAESSecret
testAuthCaptcha ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
testAuthCheckArbitrary ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthCheckAuthFails ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking the object itself)
testAuthCheckCaptcha ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthCheckDecryptPassword ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking blowfish functions)
testAuthCheckDecryptUser ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mock blowfish functions reqd)
testAuthCheckExpires ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthCheckInvalidCookie ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testAuthError ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
testAuthErrorAJAX ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
testAuthFailsActivity ( )
testAuthFailsDBI ( )
testAuthFailsDeny ( )
testAuthFailsErrno ( )
testAuthFailsNoPass ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authFails
testAuthHeader ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth with headers
testAuthSetUser ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser
testAuthSetUserWithHeaders ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser (check for headers redirect)
testCookieDecrypt ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
testCookieDecryptInvalid ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
testCookieEncrypt ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieEncrypt
testGetEncryptionSecretConfigured ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret
testGetEncryptionSecretEmpty ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret
testLogout ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testLogoutDelete ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
testMACSecretSplit ( $secret, $mac, $aes ) : void Test for secret splitting using getAESSecret

Method Details

doMockResponse() public méthode

public doMockResponse ( )

secretsProvider() public méthode

Data provider for secrets splitting.
public secretsProvider ( ) : array
Résultat array

setup() public méthode

Configures global environment.
public setup ( ) : void
Résultat void

tearDown() public méthode

tearDown for test cases
public tearDown ( ) : void
Résultat void

testAESSecretSplit() public méthode

Test for secret splitting using getMACSecret and getAESSecret
public testAESSecretSplit ( $secret, $mac, $aes ) : void
Résultat void

testAuthCaptcha() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
public testAuthCaptcha ( ) : void
Résultat void

testAuthCheckArbitrary() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckArbitrary ( ) : void
Résultat void

testAuthCheckAuthFails() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking the object itself)
public testAuthCheckAuthFails ( ) : void
Résultat void

testAuthCheckCaptcha() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckCaptcha ( ) : void
Résultat void

testAuthCheckDecryptPassword() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mocking blowfish functions)
public testAuthCheckDecryptPassword ( ) : void
Résultat void

testAuthCheckDecryptUser() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck (mock blowfish functions reqd)
public testAuthCheckDecryptUser ( ) : void
Résultat void

testAuthCheckExpires() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckExpires ( ) : void
Résultat void

testAuthCheckInvalidCookie() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testAuthCheckInvalidCookie ( ) : void
Résultat void

testAuthError() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
public testAuthError ( ) : void
Résultat void

testAuthErrorAJAX() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth
public testAuthErrorAJAX ( ) : void
Résultat void

testAuthFailsActivity() public méthode

testAuthFailsDBI() public méthode

public testAuthFailsDBI ( )

testAuthFailsDeny() public méthode

public testAuthFailsDeny ( )

testAuthFailsErrno() public méthode

public testAuthFailsErrno ( )

testAuthFailsNoPass() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authFails
public testAuthFailsNoPass ( ) : void
Résultat void

testAuthHeader() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::auth with headers
public testAuthHeader ( ) : void
Résultat void

testAuthSetUser() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser
public testAuthSetUser ( ) : void
Résultat void

testAuthSetUserWithHeaders() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authSetUser (check for headers redirect)
public testAuthSetUserWithHeaders ( ) : void
Résultat void

testCookieDecrypt() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
public testCookieDecrypt ( ) : void
Résultat void

testCookieDecryptInvalid() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt
public testCookieDecryptInvalid ( ) : void
Résultat void

testCookieEncrypt() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieEncrypt
public testCookieEncrypt ( ) : void
Résultat void

testGetEncryptionSecretConfigured() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret

testGetEncryptionSecretEmpty() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret
public testGetEncryptionSecretEmpty ( ) : void
Résultat void

testLogout() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testLogout ( ) : void
Résultat void

testLogoutDelete() public méthode

Test for PMA\libraries\plugins\auth\AuthenticationConfig::authCheck
public testLogoutDelete ( ) : void
Résultat void

testMACSecretSplit() public méthode

Test for secret splitting using getAESSecret
public testMACSecretSplit ( $secret, $mac, $aes ) : void
Résultat void

Property Details

$object protected_oe property

protected AuthenticationCookie,PMA\libraries\plugins\auth $object
Résultat PMA\libraries\plugins\auth\AuthenticationCookie