MDL-53138 tool_lp: Prevent false positive in plan events tests

This commit is contained in:
Frederic Massart 2016-02-22 13:13:38 +08:00
parent 4ed524b7a7
commit 36ad7a407d

View File

@ -499,7 +499,7 @@ class tool_lp_event_testcase extends advanced_testcase {
$sink = $this->redirectEvents();
api::create_plans_from_template_cohort($t1->get_id(), $c1->id);
// Get our event event.
$plans = tool_lp\plan::get_records(array('templateid' => $t1->get_id()));
$plans = tool_lp\plan::get_records(array('templateid' => $t1->get_id()), 'id');
$events = $sink->get_events();
$this->assertCount(2, $events);
$this->assertCount(2, $plans);