bb384a8e |
1 | <?php // $Id$ |
2 | /** |
3 | * Unit tests for grade/report/lib.php. |
4 | * |
5 | * @author nicolas@moodle.com |
6 | * @license http://www.gnu.org/copyleft/gpl.html GNU Public License |
7 | * @package moodlecore |
8 | */ |
9 | |
10 | |
11 | if (!defined('MOODLE_INTERNAL')) { |
12 | die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page |
13 | } |
14 | |
15 | require_once($CFG->dirroot.'/grade/report/lib.php'); |
16 | |
17 | /** |
18 | * @TODO create a set of mock objects to simulate the database operations. We don't want to connect to any real sql server. |
19 | */ |
20 | class gradereportlib_test extends UnitTestCase { |
21 | var $courseid = 1; |
22 | var $context = null; |
23 | var $report = null; |
24 | |
25 | function setUp() { |
26 | $this->report = new grade_report($this->courseid, $this->context); |
27 | } |
28 | |
29 | } |
30 | |
31 | ?> |