]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15666 MDL-16486
authornicolasconnault <nicolasconnault>
Wed, 17 Sep 2008 14:31:30 +0000 (14:31 +0000)
committernicolasconnault <nicolasconnault>
Wed, 17 Sep 2008 14:31:30 +0000 (14:31 +0000)
13 files changed:
admin/index.php
admin/report/simpletest/index.php
lib/adminlib.php
lib/ddl/simpletest/testddl.php
lib/dml/simpletest/dbspecific.php
lib/dml/simpletest/testdml.php
lib/grade/simpletest/testgradegrades.php
lib/simpletest/fixtures/gradetest.php
lib/simpletest/portfolio_testclass.php
lib/simpletest/testportfolioaddbutton.php
lib/simpletestlib.php
mod/data/simpletest/testpreset.php
mod/glossary/simpletest/test_glossary_portfolio_callers.php

index db460af23d8a865328eff6678f9cfae2a7d237ae..a6c2b604addd896d8daab9f77e973d0839f981b8 100644 (file)
     require_once($CFG->libdir.'/adminlib.php');        // Contains various admin-only functions
 
     $id             = optional_param('id', '', PARAM_TEXT);
-    $confirmupgrade = optional_param('confirmupgrade', 0, PARAM_BOOL);
-    $confirmrelease = optional_param('confirmrelease', 0, PARAM_BOOL);
-    $confirmplugins = optional_param('confirmplugincheck', 0, PARAM_BOOL);
-    $agreelicense   = optional_param('agreelicense', 0, PARAM_BOOL);
-    $autopilot      = optional_param('autopilot', 0, PARAM_BOOL);
-
-/// set install/upgrade autocontinue session flag
-    if ($autopilot) {
-        $SESSION->installautopilot = $autopilot;
-    }
 
 /// Check some PHP server settings
 
index e6a365ca88868ba57c18c06df36a4816df817b8d..a6f7e257ea37987661aed6bf096033c108911674 100644 (file)
@@ -20,6 +20,7 @@ require_login();
 require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
 
 $langfile = 'simpletest';
+$unittest = true;
 
 // CGI arguments
 $path = optional_param('path', null, PARAM_PATH);
@@ -29,6 +30,7 @@ $rundbtests = optional_param('rundbtests', false, PARAM_BOOL);
 $thorough = optional_param('thorough', false, PARAM_BOOL);
 $addconfigprefix = optional_param('addconfigprefix', false, PARAM_RAW);
 $setuptesttables = optional_param('setuptesttables', false, PARAM_BOOL);
+$continuesetuptesttables = optional_param('continuesetuptesttables', false, PARAM_BOOL);
 $droptesttables = optional_param('droptesttables', false, PARAM_BOOL);
 
 global $UNITTEST;
@@ -85,21 +87,52 @@ if (empty($CFG->unittest_prefix)) {
     exit();
 }
 
+// Temporarily override $DB and $CFG for a fresh install on the unit test prefix
 $real_db = clone($DB);
+$real_cfg = clone($CFG);
+$CFG = new stdClass();
+$CFG->dbhost = $real_cfg->dbhost;
+$CFG->dbtype = $real_cfg->dbtype;
+$CFG->dblibrary = $real_cfg->dblibrary;
+$CFG->dbuser = $real_cfg->dbuser;
+$CFG->dbpass = $real_cfg->dbpass;
+$CFG->dbname = $real_cfg->dbname;
+$CFG->dbpersist = $real_cfg->dbpersist;
+$CFG->unittest_prefix = $real_cfg->unittest_prefix;
+$CFG->wwwroot   = $real_cfg->wwwroot;
+$CFG->dirroot   = $real_cfg->dirroot;
+$CFG->libdir  = $real_cfg->libdir;
+$CFG->dataroot   = $real_cfg->dataroot;
+$CFG->admin     = $real_cfg->admin;
+$CFG->release     = $real_cfg->release;
+$CFG->config_php_settings     = $real_cfg->config_php_settings;
+$CFG->frametarget     = $real_cfg->frametarget;
+$CFG->footer     = $real_cfg->footer;
+
 $DB = moodle_database::get_driver_instance($CFG->dbtype, $CFG->dblibrary);
 $DB->connect($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->dbpersist, $CFG->unittest_prefix);
+
+if ($config = $DB->get_records('config')) {
+    foreach ($config as $conf) {
+        $CFG->{$conf->name} = $conf->value;
+    }
+}
+
 $test_tables = $DB->get_tables();
 
 // Build test tables if requested and needed
-if ($setuptesttables) {
+if ($setuptesttables || $continuesetuptesttables) {
     $version = null;
     $release = null;
     include("$CFG->dirroot/version.php");       // defines $version and $release
 
-    // Drop all tables first if they exist
-    $manager = $DB->get_manager();
-    foreach ($test_tables as $table) {
-        $manager->drop_table($table);
+    if (!$continuesetuptesttables) {
+        // Drop all tables first if they exist
+        $manager = $DB->get_manager();
+        foreach ($test_tables as $table) {
+            $xmldbtable = new xmldb_table($table);
+            $manager->drop_table($xmldbtable);
+        }
     }
 
     upgrade_db($version, $release, true);
@@ -108,7 +141,8 @@ if ($setuptesttables) {
 if ($droptesttables) {
     $manager = $DB->get_manager();
     foreach ($test_tables as $table) {
-        $manager->drop_table($table);
+        $xmldbtable = new xmldb_table($table);
+        $manager->drop_table($xmldbtable);
     }
     $test_tables = $DB->get_tables();
 }
@@ -122,6 +156,7 @@ if (empty($test_tables['config'])) {
 }
 
 $DB = $real_db;
+$CFG = $real_cfg;
 
 if (!is_null($path)) {
     // Create the group of tests.
index a2d13859e2654ec1c86e013efb84ded6e01af28f..ad6ef3114282401c07b9319a03e559385babd198 100644 (file)
@@ -29,8 +29,12 @@ define('INSECURE_DATAROOT_ERROR', 2);
  * @param string $release
  * @param bool   $unittest If true, bypasses a bunch of confirmation screens
  */
-function upgrade_db($version, $release, $unittest=false) {
-    global $CFG, $DB, $SESSION;
+function upgrade_db($version, $release) {
+    global $CFG, $DB, $SESSION, $unittest;
+
+    if (empty($unittest)) {
+        $unittest = false;
+    }
 
     $confirmupgrade = optional_param('confirmupgrade', $unittest, PARAM_BOOL);
     $confirmrelease = optional_param('confirmrelease', $unittest, PARAM_BOOL);
@@ -38,10 +42,16 @@ function upgrade_db($version, $release, $unittest=false) {
     $agreelicense   = optional_param('agreelicense', $unittest, PARAM_BOOL);
     $autopilot      = optional_param('autopilot', $unittest, PARAM_BOOL);
     $setuptesttables= optional_param('setuptesttables', $unittest, PARAM_BOOL);
+    $continuesetuptesttables= optional_param('continuesetuptesttables', $unittest, PARAM_BOOL);
 
     $return_url = "$CFG->wwwroot/$CFG->admin/index.php";
     if ($unittest) {
-        $return_url = "$CFG->wwwroot/$CFG->admin/report/simpletest/index.php";
+        $return_url = "$CFG->wwwroot/$CFG->admin/report/simpletest/index.php?continuesetuptesttables=".$continuesetuptesttables;
+    }
+
+    /// set install/upgrade autocontinue session flag
+    if ($autopilot) {
+        $SESSION->installautopilot = $autopilot;
     }
 
     /// Check if the main tables have been installed yet or not.
@@ -144,6 +154,7 @@ function upgrade_db($version, $release, $unittest=false) {
             print_error('cannotupdateversion', 'debug');
         }
 
+
         // Write default settings unconditionally (i.e. even if a setting is already set, overwrite it)
         // (this should only have any effect during initial install).
         admin_apply_default_settings(NULL, true);
@@ -156,7 +167,7 @@ function upgrade_db($version, $release, $unittest=false) {
         // hack - set up mnet
         require_once $CFG->dirroot.'/mnet/lib.php';
 
-        print_continue('index.php');
+        print_continue('index.php?continuesetuptesttables='.$setuptesttables);
         print_footer('none');
 
         die;
@@ -405,86 +416,100 @@ function upgrade_db($version, $release, $unittest=false) {
     // Turn xmlstrictheaders back on now.
     $CFG->xmlstrictheaders = $origxmlstrictheaders;
 
-/// Set up the blank site - to be customized later at the end of install.
-    if (! $site = get_site()) {
-        // We are about to create the site "course"
-        require_once($CFG->libdir.'/blocklib.php');
-
-        $newsite = new object();
-        $newsite->fullname = "";
-        $newsite->shortname = "";
-        $newsite->summary = NULL;
-        $newsite->newsitems = 3;
-        $newsite->numsections = 0;
-        $newsite->category = 0;
-        $newsite->format = 'site';  // Only for this course
-        $newsite->teacher = get_string("defaultcourseteacher");
-        $newsite->teachers = get_string("defaultcourseteachers");
-        $newsite->student = get_string("defaultcoursestudent");
-        $newsite->students = get_string("defaultcoursestudents");
-        $newsite->timemodified = time();
-
-        if (!$newid = $DB->insert_record('course', $newsite)) {
-            print_error('cannotsetupsite', 'error');
-        }
-        // make sure course context exists
-        get_context_instance(CONTEXT_COURSE, $newid);
-
-        // Site created, add blocks for it
-        $page = page_create_object(PAGE_COURSE_VIEW, $newid);
-        blocks_repopulate_page($page); // Return value not checked because you can always edit later
-
-        // create default course category
-        $cat = get_course_category();
-
-        redirect('index.php');
-    }
-
-    // initialise default blocks on admin and site page if needed
-    if (empty($CFG->adminblocks_initialised)) {
-        require_once("$CFG->dirroot/$CFG->admin/pagelib.php");
-        require_once($CFG->libdir.'/blocklib.php');
-        page_map_class(PAGE_ADMIN, 'page_admin');
-        $page = page_create_object(PAGE_ADMIN, 0); // there must be some id number
-        blocks_repopulate_page($page);
-
-        //add admin_tree block to site if not already present
-        if ($admintree = $DB->get_record('block', array('name'=>'admin_tree'))) {
-            $page = page_create_object(PAGE_COURSE_VIEW, SITEID);
-            $pageblocks=blocks_get_by_page($page);
-            blocks_execute_action($page, $pageblocks, 'add', (int)$admintree->id, false, false);
-            if ($admintreeinstance = $DB->get_record('block_instance', array('pagetype'=>$page->type, 'pageid'=>SITEID, 'blockid'=>$admintree->id))) {
+    if (!$unittest) {
+    /// Set up the blank site - to be customized later at the end of install.
+        if (! $site = get_site()) {
+            build_course_site();
+            redirect('index.php?continuesetuptesttables='.$continuesetuptesttables);
+        }
+
+        // initialise default blocks on admin and site page if needed
+        if (empty($CFG->adminblocks_initialised)) {
+            require_once("$CFG->dirroot/$CFG->admin/pagelib.php");
+            require_once($CFG->libdir.'/blocklib.php');
+            page_map_class(PAGE_ADMIN, 'page_admin');
+            $page = page_create_object(PAGE_ADMIN, 0); // there must be some id number
+            blocks_repopulate_page($page);
+
+            //add admin_tree block to site if not already present
+            if ($admintree = $DB->get_record('block', array('name'=>'admin_tree'))) {
+                $page = page_create_object(PAGE_COURSE_VIEW, SITEID);
                 $pageblocks=blocks_get_by_page($page);
-                blocks_execute_action($page, $pageblocks, 'moveleft', $admintreeinstance, false, false);
+                blocks_execute_action($page, $pageblocks, 'add', (int)$admintree->id, false, false);
+                if ($admintreeinstance = $DB->get_record('block_instance', array('pagetype'=>$page->type, 'pageid'=>SITEID, 'blockid'=>$admintree->id))) {
+                    $pageblocks=blocks_get_by_page($page);
+                    blocks_execute_action($page, $pageblocks, 'moveleft', $admintreeinstance, false, false);
+                }
             }
-        }
 
-        set_config('adminblocks_initialised', 1);
-    }
+            set_config('adminblocks_initialised', 1);
+        }
 
-/// Define the unique site ID code if it isn't already
-    if (empty($CFG->siteidentifier)) {    // Unique site identification code
-        set_config('siteidentifier', random_string(32).$_SERVER['HTTP_HOST']);
-    }
+    /// Define the unique site ID code if it isn't already
+        if (empty($CFG->siteidentifier)) {    // Unique site identification code
+            set_config('siteidentifier', random_string(32).$_SERVER['HTTP_HOST']);
+        }
 
-/// ugly hack - if mnet is not initialised include the mnet lib, it adds needed mnet records and configures config options
-///             we should not do such crazy stuff in lib functions!!!
-    if (empty($CFG->mnet_localhost_id)) {
-        require_once $CFG->dirroot.'/mnet/lib.php';
-    }
+    /// ugly hack - if mnet is not initialised include the mnet lib, it adds needed mnet records and configures config options
+    ///             we should not do such crazy stuff in lib functions!!!
+        if (empty($CFG->mnet_localhost_id)) {
+            require_once $CFG->dirroot.'/mnet/lib.php';
+        }
 
-/// Check if the guest user exists.  If not, create one.
-    if (!$DB->record_exists('user', array('username'=>'guest'))) {
-        if (! $guest = create_guest_record()) {
-            notify("Could not create guest user record !!!");
+    /// Check if the guest user exists.  If not, create one.
+        if (!$DB->record_exists('user', array('username'=>'guest'))) {
+            if (! $guest = create_guest_record()) {
+                notify("Could not create guest user record !!!");
+            }
         }
-    }
 
-/// Set up the admin user
-    if (empty($CFG->rolesactive)) {
-        build_context_path(); // just in case - should not be needed
+    /// Set up the admin user
+        if (empty($CFG->rolesactive)) {
+            build_context_path(); // just in case - should not be needed
+            create_admin_user();
+        }
+    } else {
+        build_site_course();
+        create_guest_record();
         create_admin_user();
+        redirect($return_url);
     }
+}
+
+function build_site_course() {
+    global $CFG, $DB;
+
+    $continuesetuptesttables= optional_param('continuesetuptesttables', $unittest, PARAM_BOOL);
+
+    // We are about to create the site "course"
+    require_once($CFG->libdir.'/blocklib.php');
+
+    $newsite = new object();
+    $newsite->fullname = "";
+    $newsite->shortname = "";
+    $newsite->summary = NULL;
+    $newsite->newsitems = 3;
+    $newsite->numsections = 0;
+    $newsite->category = 0;
+    $newsite->format = 'site';  // Only for this course
+    $newsite->teacher = get_string("defaultcourseteacher");
+    $newsite->teachers = get_string("defaultcourseteachers");
+    $newsite->student = get_string("defaultcoursestudent");
+    $newsite->students = get_string("defaultcoursestudents");
+    $newsite->timemodified = time();
+
+    if (!$newid = $DB->insert_record('course', $newsite)) {
+        print_error('cannotsetupsite', 'error');
+    }
+    // make sure course context exists
+    get_context_instance(CONTEXT_COURSE, $newid);
+
+    // Site created, add blocks for it
+    $page = page_create_object(PAGE_COURSE_VIEW, $newid);
+    blocks_repopulate_page($page); // Return value not checked because you can always edit later
+
+    // create default course category
+    $cat = get_course_category();
 
 }
 
@@ -965,7 +990,7 @@ function upgrade_plugins($type, $dir, $return) {
  */
 function upgrade_activity_modules($return) {
 
-    global $CFG, $interactive, $DB;
+    global $CFG, $interactive, $DB, $unittest;
 
     if (!$mods = get_list_of_plugins('mod') ) {
         print_error('nomodules', 'debug');
@@ -1095,7 +1120,7 @@ function upgrade_activity_modules($return) {
 
         } else {    // module not installed yet, so install it
             if (!$updated_modules) {
-                if (!defined('CLI_UPGRADE') || !CLI_UPGRADE ) {
+                if ((!defined('CLI_UPGRADE') || !CLI_UPGRADE) && !$unittest) {
                     print_header($strmodulesetup, $strmodulesetup,
                         build_navigation(array(array('name' => $strmodulesetup, 'link' => null, 'type' => 'misc'))), '',
                         upgrade_get_javascript(), false, '&nbsp;', '&nbsp;');
@@ -1386,7 +1411,7 @@ function create_admin_user($user_input=NULL) {
  * The upgrade is finished at the end of script or after timeout.
  */
 function start_upgrade() {
-    global $CFG;
+    global $CFG, $DB;
 
     static $started = false;
 
@@ -1396,7 +1421,7 @@ function start_upgrade() {
     } else {
         ignore_user_abort(true);
         register_shutdown_function('upgrade_finished_handler');
-        if ($CFG->version === '') {
+        if ($CFG->version === '' || !$DB->get_manager()->table_exists(new xmldb_table('config'))) {
             // db not installed yet
             $CFG->upgraderunning = time()+300;
         } else {
index da8f28caf68ee5883d78608b99a8a45a31dcc4b9..462379c81fc84fe64a5cff78c00463641f9dee30 100755 (executable)
@@ -11,7 +11,7 @@ if (!defined('MOODLE_INTERNAL')) {
 
 require_once($CFG->libdir . '/adminlib.php');
 
-class ddl_test extends MoodleUnitTestCase {
+class ddl_test extends UnitTestCase {
     private $tables = array();
     private $tdb;
 
index a3fe7d2e9b4eb59826133971a096cbc207fb99a3..e403d4470514c67f310fb540d09e21bf99cdf847 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-class dbspecific_test extends MoodleUnitTestCase {
+class dbspecific_test extends UnitTestCase {
     protected $tables = array();
     protected $tdb;
     protected $data;
index 84a9b9f2fe68fb7d08904f1a26642c4884e394b3..c4e54bd24c4861ca57dea94d0af665fde43252e8 100755 (executable)
@@ -8,7 +8,7 @@ if (!defined('MOODLE_INTERNAL')) {
     die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
 }
 
-class dml_test extends MoodleUnitTestCase {
+class dml_test extends UnitTestCase {
     private $tables = array();
     private $tdb;
     private $data;
index 5975603fbbc701ced9ba988b9a10bba0f05b190a..9dafcdad09fb8ecebc9b26ca00eded1dc0b0833e 100755 (executable)
@@ -58,7 +58,7 @@ class grade_grade_test extends grade_test {
         $this->assertTrue(method_exists($grade_grade, 'insert'));
 
         $grade_grade->itemid = $this->grade_items[0]->id;
-        $grade_grade->userid = 1;
+        $grade_grade->userid = 10;
         $grade_grade->rawgrade = 88;
         $grade_grade->rawgrademax = 110;
         $grade_grade->rawgrademin = 18;
@@ -117,7 +117,7 @@ class grade_grade_test extends grade_test {
         $this->assertEqual(40, grade_grade::standardise_score(50, 30, 80, 0, 100));
     }
 
-    
+
     /*
      * Disabling this test: the set_locked() arguments have been modified, rendering these tests useless until they are re-written
 
index 06f75d347667b56e6f0d1e2bef4fcde1c684732a..eee7c51533fdddc1d1452a332ff15b235f1db0a4 100644 (file)
@@ -51,18 +51,13 @@ Mock::generate('grade_outcome', 'mock_grade_outcome');
  */
 class grade_test extends MoodleUnitTestCase {
 
-    /**
-     * Each database table receives a number of test entries. These are saved as
-     * arrays of stcClass objects available to this class. This means that
-     * every test has access to these test data. The order of the following array is
-     * crucial, because of the interrelationships between objects.
-     */
-    public $tables = array('grade_categories',
+    public $grade_tables = array('grade_categories',
                         'scale',
                         'grade_items',
                         'grade_grades',
                         'grade_outcomes');
 
+
     public $grade_items = array();
     public $grade_categories = array();
     public $grade_grades = array();
@@ -72,9 +67,6 @@ class grade_test extends MoodleUnitTestCase {
     public $activities = array();
     public $courseid = 1;
     public $userid = 1;
-
-    public static $db = null;
-    public $realdb;
     public $dbmanager;
 
     /**
@@ -82,18 +74,10 @@ class grade_test extends MoodleUnitTestCase {
      * These tests have to work on a brand new site.
      */
     function setUp() {
-        // Set global category settings to -1 (not force)
         global $CFG, $DB;
-
-        if (is_null(grade_test::$db)) {
-            $this->realdb = $DB;
-            grade_test::$db = moodle_database::get_driver_instance($CFG->dbtype, $CFG->dblibrary);
-            grade_test::$db->connect($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->dbpersist, "tst_", $CFG->dboptions);
-        }
-
-        $DB = grade_test::$db;
         $this->dbmanager = $DB->get_manager();
 
+        parent::setup();
         $CFG->grade_droplow = -1;
         $CFG->grade_keephigh = -1;
         $CFG->grade_aggregation = -1;
@@ -109,7 +93,7 @@ class grade_test extends MoodleUnitTestCase {
             die("Could not create all the test tables!");
         }
 
-        foreach ($this->tables as $table) {
+        foreach ($this->grade_tables as $table) {
             $function = "load_$table";
             $this->$function();
         }
@@ -632,11 +616,10 @@ class grade_test extends MoodleUnitTestCase {
      */
     function tearDown() {
         // delete the contents of tables before the test run - the unit test might fail on fatal error and the data would not be deleted!
-        foreach ($this->tables as $table) {
+        foreach ($this->grade_tables as $table) {
             unset($this->$table);
         }
-        global $DB;
-        $DB = $this->realdb;
+        parent::tearDown();
     }
 
     /**
@@ -1377,7 +1360,7 @@ class grade_test extends MoodleUnitTestCase {
         }
 
         $grade = new stdClass();
-        $grade->itemid = $this->grade_items[7]->id;
+        $grade->itemid = $this->grade_items[8]->id;
         $grade->userid = 3;
         $grade->rawgrade = 100;
         $grade->finalgrade = 100;
index 62dc5af835b841085179c9395329fbbf113cb730..a6133a31ecd83634aa51abab6ca3a61b7cfc8195 100644 (file)
@@ -189,6 +189,10 @@ require_once($CFG->dirroot . '/admin/generator.php');
 
 class portfoliolib_test extends MoodleUnitTestCase {
 
+    function setup() {
+        parent::setup();
+    }
+
     function test_construct_dupe_instance() {
         $gotexception = false;
         try {
index 4a46de96cdc1a339d20a8e75f2593c229abc8251..f5d73fdf5a057c27317ce2e24990f15bd42d51ee 100644 (file)
@@ -37,21 +37,10 @@ if (!defined('MOODLE_INTERNAL')) {
 
 require_once($CFG->libdir . '/portfoliolib.php');
 
-class portfoliolibaddbutton_test extends MoodleMoodleUnitTestCase {
-
-    function setUp() {
-        global $DB, $CFG;
-    }
-
-    function tearDown() {
-        global $DB;
-    }
-
-    function test_addbutton() {
-
-    }
+class portfoliolibaddbutton_test extends MoodleUnitTestCase {
 
     function test_set_formats() {
+
         $button = new portfolio_add_button();
         $button->set_callback_options('assignment_portfolio_caller', array('id' => 6), '/mod/assignment/lib.php');
         $formats = array(PORTFOLIO_FORMAT_FILE, PORTFOLIO_FORMAT_IMAGE);
index 4cc713d463ae78325a7292d0ab96dd089358c6df..7af88779d21d87a1598f7c62555c6b3ef5a391ea 100644 (file)
@@ -172,6 +172,8 @@ class MoodleUnitTestCase extends UnitTestCase {
         $DB->connect($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->dbpersist, $CFG->unittest_prefix);
         $manager = $DB->get_manager();
 
+        $tables = $DB->get_tables();
+
         if (!$manager->table_exists('user')) {
             print_error('tablesnotsetup', 'simpletest');
         }
index dd6cb958382ba7662a8b94470dd20b24e2a54f0f..263ccf9d63c3be60d5044e53f3bae46252cf9741 100644 (file)
@@ -35,7 +35,7 @@ if (!defined('MOODLE_INTERNAL')) {
     die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
 }
 
-require_once($CFG->dirroot . '/mod/data/preset_class.php');
+require_once($CFG->dirroot . '/mod/data/lib.php');
 
 class data_preset_test extends MoodleUnitTestCase {
 
index 01e4423085101e2c37167330bbf83b93c68086df..c8f255eecb2465d5d62d1c6299a669de92275ddc 100644 (file)
@@ -18,7 +18,6 @@ class testGlossaryPortfolioCallers extends portfoliolib_test {
         global $DB;
 
         parent::setUp();
-
         $settings = array('tiny' => 1, 'quiet' => 1, 'pre_cleanup' => 1,
                           'modules_list' => array('glossary'), 'entries_per_glossary' => 20,
                           'number_of_students' => 5, 'students_per_course' => 5, 'number_of_sections' => 1,