1 | <?php |
||
14 | class LDAPAuthenticatorTest extends FakeGatewayTest |
||
15 | { |
||
16 | /** |
||
17 | * @var LDAPAuthenticator |
||
18 | */ |
||
19 | protected $authenticator; |
||
20 | |||
21 | /** |
||
22 | * @var HTTPRequest |
||
23 | */ |
||
24 | private $request; |
||
25 | |||
26 | /** |
||
27 | * @var ValidationResult |
||
28 | */ |
||
29 | private $result; |
||
|
|||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $data; |
||
35 | |||
36 | protected static $fixture_file = 'LDAPAuthenticatorTest.yml'; |
||
37 | |||
38 | protected function setUp() |
||
51 | |||
52 | public function testDisallowedEmailLogin() |
||
60 | |||
61 | /** |
||
62 | * Tests whether a validator error results if User not found at gateway and no fallback member found |
||
63 | */ |
||
64 | public function testEmailNotFoundAtGateWay() |
||
71 | |||
72 | /** |
||
73 | * Tests whether fallback authenticator returns a member if enabled |
||
74 | */ |
||
75 | public function testFallbackAuthenticator() |
||
84 | |||
85 | /** |
||
86 | * Tests for Invalid Credentials upon LDAP authentication failure |
||
87 | */ |
||
88 | public function testLDAPAuthenticationFailure() |
||
95 | |||
96 | /** |
||
97 | * Tests whether a new member is created in SS if it was found in LDAP but doesn't |
||
98 | * exist in SS |
||
99 | */ |
||
100 | public function testAuthenticateCreatesNewMemberIfNotFound() |
||
108 | |||
109 | private function callAuthMethod() |
||
119 | } |
||
120 |