Backup MDL-24906 Fixed unit test failures
authorSam Marshall <s.marshall@open.ac.uk>
Mon, 1 Nov 2010 16:33:30 +0000 (16:33 +0000)
committerSam Marshall <s.marshall@open.ac.uk>
Mon, 1 Nov 2010 16:33:30 +0000 (16:33 +0000)
backup/util/dbops/simpletest/testdbops.php

index 9209905..5a4af22 100644 (file)
@@ -218,7 +218,7 @@ class backup_dbops_test extends UnitTestCase {
         }
 
         // save and load controller (by backupid). Then compare
-        $bc = new mock_backup_controller4dbops(backup::TYPE_1ACTIVITY, $this->sectionid, backup::FORMAT_MOODLE,
+        $bc = new mock_backup_controller4dbops(backup::TYPE_1ACTIVITY, $this->moduleid, backup::FORMAT_MOODLE,
                                     backup::INTERACTIVE_NO, backup::MODE_GENERAL, $this->userid);
         $checksum = $bc->calculate_checksum(); // Calculate checksum
         $backupid = $bc->get_backupid();