diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-07 17:09:37 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-07 17:09:37 +0200 |
commit | cebe951b8ecd1586b5fae4e0e7f6307679e36f51 (patch) | |
tree | 4af572c691fd066a9b8986dddd8bfb31c4ee2928 /apps/dav/tests | |
parent | 884e34b12a90f8958ac46e0b8c135d61c3895cd5 (diff) | |
download | nextcloud-server-cebe951b8ecd1586b5fae4e0e7f6307679e36f51.tar.gz nextcloud-server-cebe951b8ecd1586b5fae4e0e7f6307679e36f51.zip |
Remove the untyped calendar update event
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index ec77c1f7d8c..2ac333b1526 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -63,9 +63,11 @@ class CalDavBackendTest extends AbstractCalDavBackend { '{DAV:}displayname' => 'Unit test', '{urn:ietf:params:xml:ns:caldav}calendar-description' => 'Calendar used for unit testing' ]); - $this->legacyDispatcher->expects($this->at(0)) - ->method('dispatch') - ->with('\OCA\DAV\CalDAV\CalDavBackend::updateCalendar'); + $this->dispatcher->expects(self::once()) + ->method('dispatchTyped') + ->with(self::callback(function ($event) { + return $event instanceof CalendarUpdatedEvent; + })); $this->backend->updateCalendar($calendarId, $patch); $patch->commit(); $this->assertEquals(1, $this->backend->getCalendarsForUserCount(self::UNIT_TEST_USER)); |