Skip to content

Commit

Permalink
MDL-76657 grade: load required test libraries for grade helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jan 4, 2023
1 parent 38a25b4 commit 7a36c24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions grade/tests/output/general_action_bar_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
*/
class general_action_bar_test extends advanced_testcase {

/**
* Load required test libraries
*/
public static function setUpBeforeClass(): void {
global $CFG;
require_once("{$CFG->dirroot}/grade/lib.php");
}

/**
* Search array $options for an element which is an array containing 'name' => $name.
*
Expand Down

0 comments on commit 7a36c24

Please sign in to comment.