EmailAuthenticatorTest
extends TestCase
in package
Email Authenticator Manager Test Class
Tags
Table of Contents
- testExpiredHash() : void
- If no hash can be found in the table, an exception should be thrown.
- testInvalidLoginRequest() : void
- Test invalid login request.
- testRecoveryInterval() : void
- Test that we can't send links too frequently.
- testSendAuthenticationLink() : void
- Test that a link is sent when everything is successful.
- testSessionAndIpMismatch() : void
- If there's a session/IP mismatch, an exception should be thrown.
- testSuccessfulAuthentication() : void
- Test a successful authentication.
- testValidLoginRequest() : void
- Test valid login request.
- getEmailAuthenticator() : EmailAuthenticator
- Get an EmailAuthenticator to test.
Methods
testExpiredHash()
If no hash can be found in the table, an exception should be thrown.
public
testExpiredHash() : void
Return values
void —testInvalidLoginRequest()
Test invalid login request.
public
testInvalidLoginRequest() : void
Return values
void —testRecoveryInterval()
Test that we can't send links too frequently.
public
testRecoveryInterval() : void
Return values
void —testSendAuthenticationLink()
Test that a link is sent when everything is successful.
public
testSendAuthenticationLink() : void
Return values
void —testSessionAndIpMismatch()
If there's a session/IP mismatch, an exception should be thrown.
public
testSessionAndIpMismatch() : void
Return values
void —testSuccessfulAuthentication()
Test a successful authentication.
public
testSuccessfulAuthentication() : void
Return values
void —testValidLoginRequest()
Test valid login request.
public
testValidLoginRequest() : void
Return values
void —getEmailAuthenticator()
Get an EmailAuthenticator to test.
protected
getEmailAuthenticator([SessionManager|null $sessionManager = null ][, CsrfInterface|null $csrf = null ][, Mailer|null $mailer = null ][, PhpRenderer|null $renderer = null ][, RemoteAddress|null $remoteAddress = null ][, array<string|int, mixed> $config = [] ][, AuthHashServiceInterface|null $authHashService = null ]) : EmailAuthenticator
Parameters
- $sessionManager : SessionManager|null = null
-
Session manager
- $csrf : CsrfInterface|null = null
-
CSRF validator
- $mailer : Mailer|null = null
-
Mailer service
- $renderer : PhpRenderer|null = null
-
View renderer
- $remoteAddress : RemoteAddress|null = null
-
Remote address details
- $config : array<string|int, mixed> = []
-
Configuration settings
- $authHashService : AuthHashServiceInterface|null = null
-
AuthHash database service