Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-26778 Completion unit tests broken by earlier change

  • Loading branch information...
commit 1cec45f1c07733058a7eb16e5ca7e6534289e978 1 parent 156816d
sam marshall sammarshallou authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/completionlib.php
4 lib/completionlib.php
@@ -603,8 +603,8 @@ function internal_get_state($cm, $userid, $current) {
603 603 * @return void
604 604 */
605 605 public function set_module_viewed($cm, $userid=0) {
606   - global $PAGE;
607   - if ($PAGE->headerprinted) {
  606 + global $PAGE, $UNITTEST;
  607 + if ($PAGE->headerprinted && empty($UNITTEST->running)) {
608 608 debugging('set_module_viewed must be called before header is printed',
609 609 DEBUG_DEVELOPER);
610 610 }

0 comments on commit 1cec45f

Please sign in to comment.
Something went wrong with that request. Please try again.