Skip to content

Commit

Permalink
codefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Sep 11, 2024
1 parent d7eb270 commit db3b3e7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/backup_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ final class backup_test extends advanced_testcase {
*/
protected function setUp(): void {
global $CFG, $DB;
parent::setUp();

$CFG->enablecompletion = true;
$this->resetAfterTest(true);
Expand Down
2 changes: 2 additions & 0 deletions tests/bulk_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ public static function setUpBeforeClass(): void {
global $CFG;
require_once($CFG->libdir . '/formslib.php');
require_once($CFG->dirroot . '/enrol/locallib.php');
parent::setUpBeforeClass();
}

/**
* Tests initial setup.
*/
protected function setUp(): void {
global $CFG;
parent::setUp();
$CFG->enablecompletion = true;
$this->resetAfterTest(true);
$enabled = enrol_get_plugins(true);
Expand Down
2 changes: 2 additions & 0 deletions tests/enrol_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ public static function setUpBeforeClass(): void {
global $CFG;
require_once($CFG->libdir . '/formslib.php');
require_once($CFG->dirroot . '/enrol/locallib.php');
parent::setUpBeforeClass();
}

/**
* Tests initial setup.
*/
protected function setUp(): void {
global $CFG, $DB;
parent::setUp();

$CFG->enablecompletion = true;
$this->resetAfterTest(true);
Expand Down
1 change: 1 addition & 0 deletions tests/manager_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ final class manager_test extends \advanced_testcase {
*/
protected function setUp(): void {
global $CFG, $DB;
parent::setUp();
$CFG->enablecompletion = true;
$this->resetAfterTest(true);
$enabled = enrol_get_plugins(true);
Expand Down
1 change: 1 addition & 0 deletions tests/other_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ final class other_test extends \advanced_testcase {
*/
protected function setUp(): void {
global $CFG;
parent::setUp();
$CFG->enablecompletion = true;
$this->resetAfterTest(true);
$enabled = enrol_get_plugins(true);
Expand Down
1 change: 1 addition & 0 deletions tests/time_enrolled_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ final class time_enrolled_test extends \advanced_testcase {
protected function setUp(): void {
global $CFG;
require_once($CFG->dirroot . '/enrol/locallib.php');
parent::setUp();
$CFG->enablecompletion = true;
$this->resetAfterTest(true);
$enabled = enrol_get_plugins(true);
Expand Down

0 comments on commit db3b3e7

Please sign in to comment.