Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]
LDAP enrolment 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: | 561 lines (26 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
enrol_ldap_testcase:: (9 methods):
enrol_ldap_provider()
test_enrol_ldap()
assertIsEnrolled()
assertIsNotEnrolled()
enable_plugin()
disable_plugin()
recursive_delete()
test_objectclass_fetch()
objectclass_fetch_provider()
Class: enrol_ldap_testcase - X-Ref
enrol_ldap_provider() X-Ref |
Data provider for enrol_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_enrol_ldap(int $pagesize, int $subcontext) X-Ref |
General enrol_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. |
assertIsEnrolled($courseid, $userid, $roleid, $status=null) X-Ref |
No description |
assertIsNotEnrolled($courseid, $userid) X-Ref |
No description |
enable_plugin() X-Ref |
No description |
disable_plugin() X-Ref |
No description |
recursive_delete($connection, $dn, $filter) X-Ref |
No description |
test_objectclass_fetch($usertype, $expected) X-Ref |
Test that normalisation of the use objectclass is completed successfully. param: string $usertype The supported user type param: string $expected The expected filter value |
objectclass_fetch_provider() X-Ref |
Data provider for the test_objectclass_fetch testcase. return: array of testcases. |