Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

LDAP authentication plugin tests.

Copyright: 2013 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 581 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

auth_ldap_plugin_testcase:: (8 methods):
  auth_ldap_provider()
  test_auth_ldap()
  test_ldap_user_loggedin_event()
  test_ldap_user_signup()
  create_ldap_user()
  delete_ldap_user()
  enable_plugin()
  recursive_delete()


Class: auth_ldap_plugin_testcase  - X-Ref

auth_ldap_provider()   X-Ref
Data provider for auth_ldap tests

Used to ensure that all the paged stuff works properly, irrespectively
of the pagesize configured (that implies all the chunking and paging
built in the plugis is doing its work consistently). Both searching and
not searching within subcontexts.

return: array[]

test_auth_ldap(int $pagesize, int $subcontext)   X-Ref
General auth_ldap testcase

param: int $pagesize Value to be configured in settings controlling page size.
param: int $subcontext Value to be configured in settings controlling searching in subcontexts.

test_ldap_user_loggedin_event()   X-Ref
Test logging in via LDAP calls a user_loggedin event.


test_ldap_user_signup()   X-Ref
Test logging in via LDAP calls a user_loggedin event.


create_ldap_user($connection, $topdn, $i)   X-Ref
No description

delete_ldap_user($connection, $topdn, $i)   X-Ref
No description

enable_plugin()   X-Ref
No description

recursive_delete($connection, $dn, $filter)   X-Ref
No description