mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-45416 enrol_ldap: Use null_progress_trace while running phpunit
This commit is contained in:
parent
6ce4b8ea30
commit
e790a3ecc7
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,11 @@ class enrol_ldap_plugin extends enrol_plugin {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
// Do not try to print anything to the output because this method is called during interactive login.
|
// Do not try to print anything to the output because this method is called during interactive login.
|
||||||
$trace = new error_log_progress_trace($this->errorlogtag);
|
if (PHPUNIT_TEST) {
|
||||||
|
$trace = new null_progress_trace();
|
||||||
|
} else {
|
||||||
|
$trace = new error_log_progress_trace($this->errorlogtag);
|
||||||
|
}
|
||||||
|
|
||||||
if (!$this->ldap_connect($trace)) {
|
if (!$this->ldap_connect($trace)) {
|
||||||
$trace->finished();
|
$trace->finished();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue