MDL-11517 reserved word MOD used in table alias in questions backup code
[moodle-pu.git] / mod / forum / simpletest / testmodforumlib.php
blob6698a615a60c448e63ebc51f6caae633fc9371b8
1 <?php // $Id$
3 ///////////////////////////////////////////////////////////////////////////
4 // //
5 // NOTICE OF COPYRIGHT //
6 // //
7 // Moodle - Modular Object-Oriented Dynamic Learning Environment //
8 // http://moodle.org //
9 // //
10 // Copyright (C) 1999-2004 Martin Dougiamas http://dougiamas.com //
11 // //
12 // This program is free software; you can redistribute it and/or modify //
13 // it under the terms of the GNU General Public License as published by //
14 // the Free Software Foundation; either version 2 of the License, or //
15 // (at your option) any later version. //
16 // //
17 // This program is distributed in the hope that it will be useful, //
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
20 // GNU General Public License for more details: //
21 // //
22 // http://www.gnu.org/copyleft/gpl.html //
23 // //
24 ///////////////////////////////////////////////////////////////////////////
26 /**
27 * Unit tests for (some of) ../mod/forum/lib.php.
29 * @copyright &copy; 2006 The Open University
30 * @author T.J.Hunt@open.ac.uk
31 * @author nicolas@moodle.com
32 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
33 * @package mod/forum
36 if (!defined('MOODLE_INTERNAL')) {
37 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
40 require_once($CFG->dirroot . '/mod/forum/lib.php');
42 class modforumlib_test extends UnitTestCase {
44 function setUp() {
47 function tearDown() {
50 function test_forum_cron() {
51 // watch out: forum_cron() should not be called from here,
52 // it relies on special environment setup used in admin/cron.php,
53 // mainly special cookieless session and $USER object
55 forum_cron();
56 $this->assertTrue(false);