VuFind API Documentation

ChoiceAuthTest extends TestCase
in package

ChoiceAuth test class.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Page

Table of Contents

testAuthenticate()  : void
Test successful login
testAuthenticationFailure()  : void
Test authentication failure.
testBadConfiguration()  : void
Test config validation
testContextFreeBehavior()  : void
Test that methods return false when no context is set.
testCreate()  : void
Test successful account creation
testGetSelectableAuthOptions()  : void
Test getSelectableAuthOptions
testIllegalMethod()  : void
Test an illegal auth method
testLogout()  : void
Test logout
testMissingPluginManager()  : void
Test default getPluginManager behavior
testUpdatePassword()  : void
Test update password
getChoiceAuth()  : ChoiceAuth
Get a ChoiceAuth object.
getMockPluginManager()  : PluginManager
Get a mock plugin manager.
getMockRequest()  : MockObject|Request
Get a mock request object
getMockUser()  : MockObject|UserEntityInterface
Get a mock user object
getSessionContainer()  : MockObject|Container
Get a dummy session container.

Methods

testAuthenticate()

Test successful login

public testAuthenticate() : void
Return values
void

testAuthenticationFailure()

Test authentication failure.

public testAuthenticationFailure() : void
Return values
void

testBadConfiguration()

Test config validation

public testBadConfiguration() : void
Return values
void

testContextFreeBehavior()

Test that methods return false when no context is set.

public testContextFreeBehavior() : void
Return values
void

testCreate()

Test successful account creation

public testCreate() : void
Return values
void

testGetSelectableAuthOptions()

Test getSelectableAuthOptions

public testGetSelectableAuthOptions() : void
Return values
void

testIllegalMethod()

Test an illegal auth method

public testIllegalMethod() : void
Return values
void

testLogout()

Test logout

public testLogout() : void
Return values
void

testMissingPluginManager()

Test default getPluginManager behavior

public testMissingPluginManager() : void
Return values
void

testUpdatePassword()

Test update password

public testUpdatePassword() : void
Return values
void

getChoiceAuth()

Get a ChoiceAuth object.

protected getChoiceAuth([PluginManager|null $pm = null ][, Container|null $session = null ][, string $strategies = 'Database,Shibboleth' ]) : ChoiceAuth
Parameters
$pm : PluginManager|null = null

Plugin manager

$session : Container|null = null

Session container

$strategies : string = 'Database,Shibboleth'

Strategies setting

Return values
ChoiceAuth

getSessionContainer()

Get a dummy session container.

protected getSessionContainer([string|null $method = null ]) : MockObject|Container
Parameters
$method : string|null = null

Auth method to set in container (null for none).

Return values
MockObject|Container

Search results