MDL-55611 core_calendar: fixed unit tests failing in isolation
authorMark Nelson <markn@moodle.com>
Mon, 3 Apr 2017 06:29:04 +0000 (14:29 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 4 Apr 2017 10:01:57 +0000 (11:01 +0100)
calendar/tests/container_test.php
calendar/tests/repeat_event_collection_test.php

index a56fecd..8f4f5a7 100644 (file)
 
 defined('MOODLE_INTERNAL') || die();
 
+global $CFG;
+
+require_once($CFG->dirroot . '/calendar/lib.php');
+
 use core_calendar\local\event\entities\action_event;
 use core_calendar\local\event\entities\event;
 use core_calendar\local\event\entities\event_interface;
index 4f3ad61..f59fdd9 100644 (file)
 
 defined('MOODLE_INTERNAL') || die();
 
+global $CFG;
+
+require_once($CFG->dirroot . '/calendar/lib.php');
+
 use core_calendar\local\event\entities\event;
 use core_calendar\local\event\entities\repeat_event_collection;
 use core_calendar\local\event\proxies\std_proxy;