logger = $this->createMock(LoggerInterface::class); $this->l10nFactory = $this->createMock(L10NFactory::class); $this->l10n = $this->createMock(IL10N::class); $this->urlGenerator = $this->createMock(IURLGenerator::class); $this->config = $this->createMock(IConfig::class); $this->vcalendar = new VCalendar(); $this->vcalendar->add('VEVENT', [ 'SUMMARY' => 'Fellowship meeting', 'DTSTART' => new \DateTime('2017-01-01 00:00:00+00:00'), // 1483228800, 'UID' => 'uid1234', ]); $this->calendarDisplayName = 'Personal'; $this->user = $this->createMock(IUser::class); } }