]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10066 move testmodforumlib.php into mod/forum/simpletest/
authorskodak <skodak>
Sat, 9 Jun 2007 16:55:31 +0000 (16:55 +0000)
committerskodak <skodak>
Sat, 9 Jun 2007 16:55:31 +0000 (16:55 +0000)
mod/forum/simpletest/testmodforumlib.php [moved from lib/simpletest/testmodforumlib.php with 88% similarity]

similarity index 88%
rename from lib/simpletest/testmodforumlib.php
rename to mod/forum/simpletest/testmodforumlib.php
index 327a561e2311f18de31ccb559175a611f702b671..6698a615a60c448e63ebc51f6caae633fc9371b8 100644 (file)
 ///////////////////////////////////////////////////////////////////////////
 
 /**
- * Unit tests for (some of) ../moodlelib.php.
+ * Unit tests for (some of) ../mod/forum/lib.php.
  *
  * @copyright &copy; 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);
+        */
     }
 }