From 4e0ac12efa77bc410d5b8f3911bd78592beedf61 Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Mon, 12 Feb 2018 05:44:06 +0000 Subject: [PATCH] MDL-60958 calendar: fix test helper action factory --- calendar/tests/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/tests/helpers.php b/calendar/tests/helpers.php index 014ae60a5e3..aa53fd4b35d 100644 --- a/calendar/tests/helpers.php +++ b/calendar/tests/helpers.php @@ -126,7 +126,7 @@ class action_event_test_factory implements event_factory_interface { $user->id = $id; return $user; }), - new repeat_event_collection($record->id, null, $this), + !empty($record->repeatid) ? new repeat_event_collection($record, $this) : null, $module, $record->eventtype, new event_times( -- 2.11.4.GIT