MultiAuthTest
extends TestCase
in package
LDAP authentication test class.
Tags
Table of Contents
- getAuthConfig() : Config
- Get a working configuration for the auth object
- getAuthObject() : MultiAuth
- Get an authentication object.
- testLoginWithBadClass() : void
- Test login with handler configured to load a class which does not conform to the appropriate authentication interface. (We'll use the factory class as an arbitrary inappropriate class).
- testLoginWithBadService() : void
- Test login with handler configured to load a service which does not exist.
- testLoginWithBlankPassword() : void
- Test login with blank password.
- testLoginWithBlankUsername() : void
- Test login with blank username.
- testWithMissingMethodOrder() : void
- Verify that missing host causes failure.
- getLoginRequest() : Request
- Support method -- get parameters to log into an account (but allow override of individual parameters so we can test different scenarios).
Methods
getAuthConfig()
Get a working configuration for the auth object
public
getAuthConfig() : Config
Return values
Config —getAuthObject()
Get an authentication object.
public
getAuthObject([Config $config = null ]) : MultiAuth
Parameters
- $config : Config = null
-
Configuration to use (null for default)
Return values
MultiAuth —testLoginWithBadClass()
Test login with handler configured to load a class which does not conform to the appropriate authentication interface. (We'll use the factory class as an arbitrary inappropriate class).
public
testLoginWithBadClass() : void
Return values
void —testLoginWithBadService()
Test login with handler configured to load a service which does not exist.
public
testLoginWithBadService() : void
Return values
void —testLoginWithBlankPassword()
Test login with blank password.
public
testLoginWithBlankPassword() : void
Return values
void —testLoginWithBlankUsername()
Test login with blank username.
public
testLoginWithBlankUsername() : void
Return values
void —testWithMissingMethodOrder()
Verify that missing host causes failure.
public
testWithMissingMethodOrder() : void
Return values
void —getLoginRequest()
Support method -- get parameters to log into an account (but allow override of individual parameters so we can test different scenarios).
protected
getLoginRequest([array<string|int, mixed> $overrides = [] ]) : Request
Parameters
- $overrides : array<string|int, mixed> = []
-
Associative array of parameters to override.