Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-42767 events: Remove ob_clean from tests

  • Loading branch information...
commit dbc251e25ca91c475f6532d21e24d7c2a7228ba8 1 parent bdfb46a
@ankitagarwal ankitagarwal authored marinaglancy committed
Showing with 1 addition and 6 deletions.
  1. +1 −6 course/tests/courselib_test.php
View
7 course/tests/courselib_test.php
@@ -1566,12 +1566,7 @@ public function test_course_content_deleted_event() {
// Catch the update event.
$sink = $this->redirectEvents();
- // Call remove_course_contents() which will trigger the course_content_deleted event.
- // This function prints out data to the screen, which we do not want during a PHPUnit
- // test, so use ob_start and ob_end_clean to prevent this.
- ob_start();
- remove_course_contents($course->id);
- ob_end_clean();
+ remove_course_contents($course->id, false);
// Capture the event.
$events = $sink->get_events();
Please sign in to comment.
Something went wrong with that request. Please try again.