diff options
author | Anna Larch <anna@nextcloud.com> | 2023-01-04 00:21:36 +0100 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2023-01-05 11:55:26 +0100 |
commit | d58ecdcfad378132e9b1dcf47b098c45ccbc371d (patch) | |
tree | 9139488ad83dd04781241b1df102a08792a7f280 /apps/dav/tests/unit | |
parent | 0e6a8d72f8e5f71a6dcc0c9ecee6268405b8797f (diff) | |
download | nextcloud-server-d58ecdcfad378132e9b1dcf47b098c45ccbc371d.tar.gz nextcloud-server-d58ecdcfad378132e9b1dcf47b098c45ccbc371d.zip |
Hook into sabre event lifecycle for iMip Messages
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/tests/unit')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalendarImplTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CalendarImplTest.php b/apps/dav/tests/unit/CalDAV/CalendarImplTest.php index cc0b963634c..5adb7041e8b 100644 --- a/apps/dav/tests/unit/CalDAV/CalendarImplTest.php +++ b/apps/dav/tests/unit/CalDAV/CalendarImplTest.php @@ -168,9 +168,6 @@ EOF; $schedulingPlugin = $this->createMock(Plugin::class); $iTipMessage = $this->getITipMessage($message); $iTipMessage->recipient = "mailto:lewis@stardew-tent-living.com"; - $schedulingPlugin->expects(self::once()) - ->method('scheduleLocalDelivery') - ->with($iTipMessage); $server = $this->createMock(Server::class); $server->expects($this->any()) @@ -180,6 +177,8 @@ EOF; ['acl', $aclPlugin], ['caldav-schedule', $schedulingPlugin] ]); + $server->expects(self::once()) + ->method('emit'); $invitationResponseServer = $this->createPartialMock(InvitationResponseServer::class, ['getServer', 'isExternalAttendee']); $invitationResponseServer->server = $server; @@ -224,6 +223,8 @@ EOF; ['acl', $aclPlugin], ['caldav-schedule', $schedulingPlugin] ]); + $server->expects(self::never()) + ->method('emit'); $invitationResponseServer = $this->createPartialMock(InvitationResponseServer::class, ['getServer']); $invitationResponseServer->server = $server; |