| Línea 62... |
Línea 62... |
| 62 |
*
|
62 |
*
|
| 63 |
* @dataProvider enrol_ldap_provider
|
63 |
* @dataProvider enrol_ldap_provider
|
| 64 |
* @param int $pagesize Value to be configured in settings controlling page size.
|
64 |
* @param int $pagesize Value to be configured in settings controlling page size.
|
| 65 |
* @param int $subcontext Value to be configured in settings controlling searching in subcontexts.
|
65 |
* @param int $subcontext Value to be configured in settings controlling searching in subcontexts.
|
| 66 |
*/
|
66 |
*/
|
| 67 |
public function test_enrol_ldap(int $pagesize, int $subcontext) {
|
67 |
public function test_enrol_ldap(int $pagesize, int $subcontext): void {
|
| 68 |
global $CFG, $DB;
|
68 |
global $CFG, $DB;
|
| Línea 69... |
Línea 69... |
| 69 |
|
69 |
|
| 70 |
if (!extension_loaded('ldap')) {
|
70 |
if (!extension_loaded('ldap')) {
|
| 71 |
$this->markTestSkipped('LDAP extension is not loaded.');
|
71 |
$this->markTestSkipped('LDAP extension is not loaded.');
|
| Línea 500... |
Línea 500... |
| 500 |
*
|
500 |
*
|
| 501 |
* @dataProvider objectclass_fetch_provider
|
501 |
* @dataProvider objectclass_fetch_provider
|
| 502 |
* @param string $usertype The supported user type
|
502 |
* @param string $usertype The supported user type
|
| 503 |
* @param string $expected The expected filter value
|
503 |
* @param string $expected The expected filter value
|
| 504 |
*/
|
504 |
*/
|
| 505 |
public function test_objectclass_fetch($usertype, $expected) {
|
505 |
public function test_objectclass_fetch($usertype, $expected): void {
|
| 506 |
$this->resetAfterTest();
|
506 |
$this->resetAfterTest();
|
| 507 |
// Set the user type - this must be performed before the plugin is instantiated.
|
507 |
// Set the user type - this must be performed before the plugin is instantiated.
|
| 508 |
set_config('user_type', $usertype, 'enrol_ldap');
|
508 |
set_config('user_type', $usertype, 'enrol_ldap');
|
| Línea 509... |
Línea 509... |
| 509 |
|
509 |
|