fixup! fix(caldav): Ignore invalid events for reminder generation

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-05-31 13:08:30 +02:00
parent b7e7d80173
commit 4033154302
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

View file

@ -373,7 +373,7 @@ EOD;
'component' => 'vevent',
];
$this->backend->expects($this->exactly(2))
$this->backend->expects($this->never())
->method('insertReminder')
->withConsecutive(
[1337, 42, 'wej2z68l9h', false, null, false, '5c70531aab15c92b52518ae10a2f78a4', 'de919af7429d3b5c11e8b9d289b411a6', 'EMAIL', true, 1465429500, false],
@ -381,11 +381,6 @@ EOD;
)
->willReturn(1);
$this->timeFactory->expects($this->once())
->method('getDateTime')
->with()
->willReturn(DateTime::createFromFormat(DateTime::ATOM, '2016-06-08T00:00:00+00:00'));
$this->reminderService->onCalendarObjectCreate($objectData);
}