Merge branch 'w04_MDL-37499_m25_authldaptest' of git://github.com/skodak/moodle

This commit is contained in:
Aparup Banerjee 2013-01-29 16:33:37 +08:00
commit 37c68301f9
2 changed files with 284 additions and 1 deletions

View file

@ -58,7 +58,7 @@ class enrol_ldap_testcase extends advanced_testcase {
// Make sure we can connect the server.
$debuginfo = '';
if (!$connection = ldap_connect_moodle(TEST_ENROL_LDAP_HOST_URL, 3, 'rfc2307', TEST_ENROL_LDAP_BIND_DN, TEST_ENROL_LDAP_BIND_PW, LDAP_DEREF_NEVER, $debuginfo, false)) {
$this->markTestSkipped('Can not connect to LDAP test server.');
$this->markTestSkipped('Can not connect to LDAP test server: '.$debuginfo);
}
$this->enable_plugin();