MDL-29794 Initial support for re-using a shared grading form
[moodle.git] / grade / simpletest / testreportlib.php
CommitLineData
e060e33d 1<?php
2
3// This file is part of Moodle - http://moodle.org/
4//
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17
bb384a8e 18/**
19 * Unit tests for grade/report/lib.php.
20 *
21 * @author nicolas@moodle.com
22 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
23 * @package moodlecore
24 */
25
26
27if (!defined('MOODLE_INTERNAL')) {
28 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
29}
30
31require_once($CFG->dirroot.'/grade/report/lib.php');
32
33/**
34 * @TODO create a set of mock objects to simulate the database operations. We don't want to connect to any real sql server.
35 */
5dc8870f 36class gradereportlib_test extends UnitTestCaseUsingDatabase {
bb384a8e 37 var $courseid = 1;
38 var $context = null;
39 var $report = null;
d47cf63d 40 public static $includecoverage = array('grade/report/lib.php');
bb384a8e 41
42 function setUp() {
4fbaa776 43 //$this->report = new grade_report($this->courseid, $this->context);
bb384a8e 44 }
45
46}
47
6c3ef410 48