Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testLdapConfiguration() |
||
14 | { |
||
15 | $authSourceData = [ |
||
16 | 'hostname' => 'ldaps://ldap.example.com:636', |
||
17 | ]; |
||
18 | |||
19 | $confTest = new TestCase\AuthSource\Ldap\Configuration( |
||
20 | new TestData(['authSourceData' => $authSourceData]) |
||
21 | ); |
||
22 | $testResult = $confTest->getTestResult(); |
||
23 | $this->assertEquals('ldaps://ldap.example.com:636', $testResult->getSubject()); |
||
24 | |||
25 | $authSourceData = [ |
||
26 | 'hostname' => 'ldap.example.com', |
||
27 | 'port' => 636, |
||
28 | 'enable_tls' => true, |
||
29 | 'timeout' => 999, |
||
30 | 'debug' => true, |
||
31 | 'referrals' => true, |
||
32 | ]; |
||
33 | |||
34 | $confTest = new TestCase\AuthSource\Ldap\Configuration( |
||
|
|||
35 | new TestData(['authSourceData' => $authSourceData]) |
||
36 | ); |
||
37 | $this->assertEquals('ldaps://ldap.example.com:636', $testResult->getSubject()); |
||
38 | } |
||
40 |