VuFind API Documentation

ILSAuthenticatorTest extends TestCase
in package

ILS Authenticator Manager 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

Wiki

Table of Contents

testExceptionDuringStoredLoginAttempt()  : void
Test an exception during stored login attempt.
testLoggedOutStoredLoginAttempt()  : void
Test stored catalog login attempt with logged out user.
testNewCatalogFailure()  : void
Test new catalog login failure.
testNewCatalogFailureByException()  : void
Test new catalog login failure (caused by exception).
testNewCatalogLoginSuccess()  : void
Test new catalog login success.
testNullEncryptionAndDecryption()  : void
Test encryption and decryption of null.
testStringEncryptionAndDecryption()  : void
Test encryption and decryption of a string.
testSuccessfulStoredLoginAttempt()  : void
Test a successful stored login attempt.
testUnsuccessfulStoredLoginAttempt()  : void
Test an unsuccessful stored login attempt.
getAuthConfig()  : array<string|int, mixed>
Get authentication-specific configuration.
getAuthenticator()  : ILSAuthenticator
Get an authenticator
getMockConnection()  : MockObject|Connection
Get a mock ILS connection
getMockManager()  : MockObject|Manager
Get a mock auth manager
getMockUser()  : MockObject|UserEntityInterface
Get a mock user object

Methods

testExceptionDuringStoredLoginAttempt()

Test an exception during stored login attempt.

public testExceptionDuringStoredLoginAttempt() : void
Return values
void

testLoggedOutStoredLoginAttempt()

Test stored catalog login attempt with logged out user.

public testLoggedOutStoredLoginAttempt() : void
Return values
void

testNewCatalogFailure()

Test new catalog login failure.

public testNewCatalogFailure() : void
Return values
void

testNewCatalogFailureByException()

Test new catalog login failure (caused by exception).

public testNewCatalogFailureByException() : void
Return values
void

testNewCatalogLoginSuccess()

Test new catalog login success.

public testNewCatalogLoginSuccess() : void
Return values
void

testNullEncryptionAndDecryption()

Test encryption and decryption of null.

public testNullEncryptionAndDecryption() : void
Return values
void

testStringEncryptionAndDecryption()

Test encryption and decryption of a string.

public testStringEncryptionAndDecryption() : void
Return values
void

testSuccessfulStoredLoginAttempt()

Test a successful stored login attempt.

public testSuccessfulStoredLoginAttempt() : void
Return values
void

testUnsuccessfulStoredLoginAttempt()

Test an unsuccessful stored login attempt.

public testUnsuccessfulStoredLoginAttempt() : void
Return values
void

getAuthConfig()

Get authentication-specific configuration.

protected getAuthConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAuthenticator()

Get an authenticator

protected getAuthenticator([Manager $manager = null ][, Connection $connection = null ][, EmailAuthenticator $emailAuth = null ][, array<string|int, mixed> $config = [] ]) : ILSAuthenticator
Parameters
$manager : Manager = null

Auth manager (null for default mock)

$connection : Connection = null

ILS connection (null for default mock)

$emailAuth : EmailAuthenticator = null

Email authenticator (null for default mock)

$config : array<string|int, mixed> = []

Configuration (null for empty)

Return values
ILSAuthenticator

getMockConnection()

Get a mock ILS connection

protected getMockConnection([array<string|int, mixed> $methods = [] ]) : MockObject|Connection
Parameters
$methods : array<string|int, mixed> = []

Methods to mock

Return values
MockObject|Connection

getMockManager()

Get a mock auth manager

protected getMockManager([array<string|int, mixed> $methods = [] ]) : MockObject|Manager
Parameters
$methods : array<string|int, mixed> = []

Methods to mock

Return values
MockObject|Manager

Search results