Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / grade / simpletest / testreportlib.php
blob23946cf23ffda77be2b4a138e438ec25eb7af86b
1 <?php // $Id$
2 /**
3 * Unit tests for grade/report/lib.php.
5 * @author nicolas@moodle.com
6 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
7 * @package moodlecore
8 */
11 if (!defined('MOODLE_INTERNAL')) {
12 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
15 require_once($CFG->dirroot.'/grade/report/lib.php');
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.
20 class gradereportlib_test extends UnitTestCase {
21 var $courseid = 1;
22 var $context = null;
23 var $report = null;
25 function setUp() {
26 $this->report = new grade_report($this->courseid, $this->context);