From bc1bbd3da066263fc03b1653f0abfa3e6274279a Mon Sep 17 00:00:00 2001 From: Piotr Filip <6465816-piotrfilip@users.noreply.gitlab.com> Date: Wed, 22 Jul 2020 17:40:59 +0200 Subject: [PATCH] test: remove dependency on the current date --- testing/phpunit/ExpansionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/phpunit/ExpansionTest.php b/testing/phpunit/ExpansionTest.php index 7d0f36c1..11727eb2 100644 --- a/testing/phpunit/ExpansionTest.php +++ b/testing/phpunit/ExpansionTest.php @@ -93,7 +93,7 @@ END:VCALENDAR * rather than making SQL queries */ function get_freebusyish(vCalendar $cal) { - $expansion = expand_event_instances($cal)->GetComponents(['VEVENT' => true]); + $expansion = expand_event_instances($cal, new RepeatRuleDateTime('2019-01-01 00:00:00'))->GetComponents(['VEVENT' => true]); $result = array();