From: skodak Date: Sat, 9 Jun 2007 16:55:31 +0000 (+0000) Subject: MDL-10066 move testmodforumlib.php into mod/forum/simpletest/ X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=19be539627a64e7c6213eb4e6a9f8b67c6fac0c8;p=moodle.git MDL-10066 move testmodforumlib.php into mod/forum/simpletest/ --- diff --git a/lib/simpletest/testmodforumlib.php b/mod/forum/simpletest/testmodforumlib.php similarity index 88% rename from lib/simpletest/testmodforumlib.php rename to mod/forum/simpletest/testmodforumlib.php index 327a561e23..6698a615a6 100644 --- a/lib/simpletest/testmodforumlib.php +++ b/mod/forum/simpletest/testmodforumlib.php @@ -24,13 +24,13 @@ /////////////////////////////////////////////////////////////////////////// /** - * Unit tests for (some of) ../moodlelib.php. + * Unit tests for (some of) ../mod/forum/lib.php. * * @copyright © 2006 The Open University * @author T.J.Hunt@open.ac.uk * @author nicolas@moodle.com * @license http://www.gnu.org/copyleft/gpl.html GNU Public License - * @package moodlecore + * @package mod/forum */ if (!defined('MOODLE_INTERNAL')) { @@ -48,8 +48,13 @@ class modforumlib_test extends UnitTestCase { } function test_forum_cron() { + // watch out: forum_cron() should not be called from here, + // it relies on special environment setup used in admin/cron.php, + // mainly special cookieless session and $USER object + /* forum_cron(); $this->assertTrue(false); + */ } }