Skip to content
Permalink
Browse files

MDL-42767 events: Remove ob_clean from tests

  • Loading branch information...
ankitagarwal authored and marinaglancy committed Nov 19, 2013
1 parent bdfb46a commit dbc251e25ca91c475f6532d21e24d7c2a7228ba8
Showing with 1 addition and 6 deletions.
  1. +1 −6 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();

0 comments on commit dbc251e

Please sign in to comment.
You can’t perform that action at this time.