SilverStripe\LDAP\Tests\Authenticators\LDAPAuthenticatorTest
Synopsis
class LDAPAuthenticatorTest
extends SapphireTest
{
- // members
- protected LDAPAuthenticator $authenticator;
- private HTTPRequest $request;
- private ValidationResult $result;
- private $data;
- protected static string $fixture_file = 'LDAPAuthenticatorTest.yml';
- // methods
- protected void setUp()
- public void testDisallowedEmailLogin()
- public void testEmailNotFoundAtGateWay()
- public void testFallbackAuthenticator()
- public void testLDAPAuthenticationFailure()
- public void testAuthenticateCreatesNewMemberIfNotFound()
- private void callAuthMethod()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
private
- $data — array
- $request — SilverStripe\Control\HTTPRequest
- $result — SilverStripe\ORM\ValidationResult
protected
- $authenticator — SilverStripe\LDAP\Authenticators\LDAPAuthenticator
- $fixture_file
Methods
private
protected
public
- testAuthenticateCreatesNewMemberIfNotFound() — Tests whether a new member is created in SS if it was found in LDAP but doesn't exist in SS
- testDisallowedEmailLogin()
- testEmailNotFoundAtGateWay() — Tests whether a validator error results if User not found at gateway and no fallback member found
- testFallbackAuthenticator() — Tests whether fallback authenticator returns a member if enabled
- testLDAPAuthenticationFailure() — Tests for Invalid Credentials upon LDAP authentication failure