MDL-37539 assign: Fix unit test after changes to upgrade for advanced file assignments.
authorDamyon Wiese <damyon@moodle.com>
Tue, 22 Jan 2013 01:04:13 +0000 (09:04 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 22 Jan 2013 01:04:13 +0000 (09:04 +0800)
mod/assign/tests/upgradelib_test.php

index 8454229..51fb6eb 100644 (file)
@@ -136,7 +136,7 @@ class mod_assign_upgradelib_testcase extends advanced_testcase {
         $plugin = $assign->get_submission_plugin_by_type('onlinetext');
         $this->assertEmpty($plugin->is_enabled());
         $plugin = $assign->get_submission_plugin_by_type('comments');
         $plugin = $assign->get_submission_plugin_by_type('onlinetext');
         $this->assertEmpty($plugin->is_enabled());
         $plugin = $assign->get_submission_plugin_by_type('comments');
-        $this->assertNotEmpty($plugin->is_enabled());
+        $this->assertEmpty($plugin->is_enabled());
         $plugin = $assign->get_submission_plugin_by_type('file');
         $this->assertNotEmpty($plugin->is_enabled());
         $plugin = $assign->get_feedback_plugin_by_type('comments');
         $plugin = $assign->get_submission_plugin_by_type('file');
         $this->assertNotEmpty($plugin->is_enabled());
         $plugin = $assign->get_feedback_plugin_by_type('comments');