Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 26... Línea 26...
26
 *
26
 *
27
 * @package    core_grades
27
 * @package    core_grades
28
 * @copyright  2021 Mihail Geshoski <mihail@moodle.com>
28
 * @copyright  2021 Mihail Geshoski <mihail@moodle.com>
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
30
 */
31
class general_action_bar_test extends advanced_testcase {
31
final class general_action_bar_test extends advanced_testcase {
Línea 32... Línea 32...
32
 
32
 
33
    /**
33
    /**
34
     * Load required test libraries
34
     * Load required test libraries
35
     */
35
     */
36
    public static function setUpBeforeClass(): void {
36
    public static function setUpBeforeClass(): void {
37
        global $CFG;
37
        global $CFG;
-
 
38
        require_once("{$CFG->dirroot}/grade/lib.php");
38
        require_once("{$CFG->dirroot}/grade/lib.php");
39
        parent::setUpBeforeClass();
Línea 39... Línea 40...
39
    }
40
    }
40
 
41
 
41
    /**
42
    /**
Línea 153... Línea 154...
153
    /**
154
    /**
154
     * Data provider for the test_export_for_template test.
155
     * Data provider for the test_export_for_template test.
155
     *
156
     *
156
     * @return array
157
     * @return array
157
     */
158
     */
158
    public function export_for_template_provider(): array {
159
    public static function export_for_template_provider(): array {
159
        $graderpluginname = get_string('pluginname', 'gradereport_grader');
160
        $graderpluginname = get_string('pluginname', 'gradereport_grader');
160
        $historypluginname = get_string('pluginname', 'gradereport_history');
161
        $historypluginname = get_string('pluginname', 'gradereport_history');
161
        $outcomespluginname = get_string('pluginname', 'gradereport_outcomes');
162
        $outcomespluginname = get_string('pluginname', 'gradereport_outcomes');
162
        $overviewpluginname = get_string('pluginname', 'gradereport_overview');
163
        $overviewpluginname = get_string('pluginname', 'gradereport_overview');
163
        $singleviewpluginname = get_string('pluginname', 'gradereport_singleview');
164
        $singleviewpluginname = get_string('pluginname', 'gradereport_singleview');