From 6de4beb8dda9cc434ecb7b773fa10ce7866587c4 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Wed, 16 Oct 2013 13:20:33 +0800 Subject: [PATCH] MDL-42380 Course unit tests: Remove assert causing oracle unit tests to die --- course/tests/management_helper_test.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/course/tests/management_helper_test.php b/course/tests/management_helper_test.php index 901388cf3e2..37989b75b50 100644 --- a/course/tests/management_helper_test.php +++ b/course/tests/management_helper_test.php @@ -901,13 +901,6 @@ class core_course_management_helper_test extends advanced_testcase { $this->assertEquals('1', $course->visible); $this->assertEquals('1', $course->visibleold); - // Try with an invalid object. - try { - \core_course\management\helper::action_course_show(get_course($course->id)); - } catch (PHPUnit_Framework_Error $exception) { - $this->assertNotEquals(false, strpos($exception->getMessage(), 'must be an instance of course_in_list')); - } - // Revoke the permissions. $assignment->revoke(); $course = new course_in_list(get_course($course->id)); @@ -1296,4 +1289,4 @@ class core_course_management_helper_test extends advanced_testcase { $CFG->debug = $olddebug; } -} \ No newline at end of file +}