PHP Class AuthenticationHttpTest, phpmyadmin

Inheritance: extends PMATestCase
Show file Open project: phpmyadmin/phpmyadmin

Protected Properties

Property Type Description
$object PMA\libraries\plugins\auth\AuthenticationHttp

Public Methods

Method Description
authCheckProvider ( ) : array Data provider for testAuthCheck
doMockResponse ( $set_minimal, $body_id, $set_title )
setup ( ) : void Configures global environment.
tearDown ( ) : void tearDown for test cases
testAuthCheck ( string $user, string $pass, string $userIndex, string $passIndex, string $expectedReturn, string $expectedUser, string $expectedPass, string $old_usr = '' ) : void Test for PMA\libraries\plugins\auth\AuthenticationHttp::authCheck
testAuthFails ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationHttp::authSetFails
testAuthHost ( )
testAuthLogoutUrl ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationHttp::auth
testAuthRealm ( )
testAuthSetUser ( ) : void Test for PMA\libraries\plugins\auth\AuthenticationHttp::authSetUser
testAuthVerbose ( )

Method Details

authCheckProvider() public method

Data provider for testAuthCheck
public authCheckProvider ( ) : array
return array Test data

doMockResponse() public method

public doMockResponse ( $set_minimal, $body_id, $set_title )

setup() public method

Configures global environment.
public setup ( ) : void
return void

tearDown() public method

tearDown for test cases
public tearDown ( ) : void
return void

testAuthCheck() public method

Test for PMA\libraries\plugins\auth\AuthenticationHttp::authCheck
public testAuthCheck ( string $user, string $pass, string $userIndex, string $passIndex, string $expectedReturn, string $expectedUser, string $expectedPass, string $old_usr = '' ) : void
$user string test username
$pass string test password
$userIndex string index to test username against
$passIndex string index to test username against
$expectedReturn string expected return value from test
$expectedUser string expected username to be set
$expectedPass string expected password to be set
$old_usr string value for $_REQUEST['old_usr']
return void

testAuthFails() public method

Test for PMA\libraries\plugins\auth\AuthenticationHttp::authSetFails
public testAuthFails ( ) : void
return void

testAuthHost() public method

public testAuthHost ( )

testAuthLogoutUrl() public method

Test for PMA\libraries\plugins\auth\AuthenticationHttp::auth
public testAuthLogoutUrl ( ) : void
return void

testAuthRealm() public method

public testAuthRealm ( )

testAuthSetUser() public method

Test for PMA\libraries\plugins\auth\AuthenticationHttp::authSetUser
public testAuthSetUser ( ) : void
return void

testAuthVerbose() public method

public testAuthVerbose ( )

Property Details

$object protected property

protected AuthenticationHttp,PMA\libraries\plugins\auth $object
return PMA\libraries\plugins\auth\AuthenticationHttp