Permalink
Browse files

MDL-29478 unittest - explicity include blog/lib.php. Was causing "ran…

…dom" errors
  • Loading branch information...
1 parent cb59f50 commit 7bfc279ffbebd7b41535b51ad62154f953d8ec8d @stronk7 stronk7 committed Sep 22, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 blog/simpletest/testbloglib.php
@@ -26,13 +26,14 @@
*/
require_once($CFG->dirroot . '/blog/locallib.php');
+require_once($CFG->dirroot . '/blog/lib.php');
/**
* Test functions that rely on the DB tables
*/
class bloglib_test extends UnitTestCaseUsingDatabase {
- public static $includecoverage = array('blog/locallib.php');
+ public static $includecoverage = array('blog/locallib.php', 'blog/lib.php');
private $courseid; // To store important ids to be used in tests
private $groupid;

0 comments on commit 7bfc279

Please sign in to comment.