Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37082 mod_assign: removed reference to deprecated delete_course_m…

…odule function in the unit tests
  • Loading branch information...
commit 18aaeef0b676d993a2a501b39c89dfa73f031757 1 parent a347aee
@markn86 markn86 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/assign/tests/upgradelib_test.php
View
8 mod/assign/tests/upgradelib_test.php
@@ -147,7 +147,7 @@ public function test_upgrade_upload_assignment() {
$this->assertEmpty($plugin->is_enabled());
$assign->delete_instance();
- delete_course_module($cm->id);
+ course_delete_module($cm->id);
delete_mod_from_section($cm->id, $cm->section);
}
@@ -188,7 +188,7 @@ public function test_upgrade_uploadsingle_assignment() {
$this->assertEmpty($plugin->is_enabled());
$assign->delete_instance();
- delete_course_module($cm->id);
+ course_delete_module($cm->id);
delete_mod_from_section($cm->id, $cm->section);
}
@@ -229,7 +229,7 @@ public function test_upgrade_onlinetext_assignment() {
$this->assertEmpty($plugin->is_enabled());
$assign->delete_instance();
- delete_course_module($cm->id);
+ course_delete_module($cm->id);
delete_mod_from_section($cm->id, $cm->section);
}
@@ -270,7 +270,7 @@ public function test_upgrade_offline_assignment() {
$this->assertEmpty($plugin->is_enabled());
$assign->delete_instance();
- delete_course_module($cm->id);
+ course_delete_module($cm->id);
delete_mod_from_section($cm->id, $cm->section);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.