예제 #1
0
파일: user.php 프로젝트: aleph-n/lms.aaenl
 /**
  * Reset self::$noreplyuser and self::$supportuser.
  * This is only used by phpunit, and there is no other use case for this function.
  * Please don't use it outside phpunit.
  */
 public static function reset_internal_users()
 {
     if (PHPUNIT_TEST) {
         self::$noreplyuser = false;
         self::$supportuser = false;
     } else {
         debugging('reset_internal_users() should not be used outside phpunit.', DEBUG_DEVELOPER);
     }
 }