mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
55 lines
2.4 KiB
PHP
55 lines
2.4 KiB
PHP
<?php // $Id$
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// //
|
|
// NOTICE OF COPYRIGHT //
|
|
// //
|
|
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
|
|
// http://moodle.com //
|
|
// //
|
|
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
|
|
// //
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
// it under the terms of the GNU General Public License as published by //
|
|
// the Free Software Foundation; either version 2 of the License, or //
|
|
// (at your option) any later version. //
|
|
// //
|
|
// This program is distributed in the hope that it will be useful, //
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
// GNU General Public License for more details: //
|
|
// //
|
|
// http://www.gnu.org/copyleft/gpl.html //
|
|
// //
|
|
///////////////////////////////////////////////////////////////////////////
|
|
/**
|
|
* Unit tests for grade/report/lib.php.
|
|
*
|
|
* @author nicolas@moodle.com
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
|
* @package moodlecore
|
|
*/
|
|
|
|
|
|
if (!defined('MOODLE_INTERNAL')) {
|
|
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
|
}
|
|
|
|
require_once($CFG->dirroot.'/grade/report/lib.php');
|
|
|
|
/**
|
|
* @TODO create a set of mock objects to simulate the database operations. We don't want to connect to any real sql server.
|
|
*/
|
|
class gradereportlib_test extends FakeDBUnitTestCase {
|
|
var $courseid = 1;
|
|
var $context = null;
|
|
var $report = null;
|
|
|
|
function setUp() {
|
|
$this->report = new grade_report($this->courseid, $this->context);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|