mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-42380 Course unit tests: Remove assert causing oracle unit tests to die
This commit is contained in:
parent
11182e2eb1
commit
6de4beb8dd
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue