Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-05-12 16:12:25 +0300
committerThomas Citharel <tcit@tcit.fr>2022-05-12 16:28:36 +0300
commita7b2e8a593ef218ca4218d0633932b15a5bfca76 (patch)
tree98762ef893eb7cdeb9cc589e4feaf93dbabdb18e /apps
parent8d7154318fb063d0e79bb344749e4be9ce26ef0b (diff)
Refactor CalDAV\Schedule\PluginTest for depreciated phpunit methodsdav-scheduling-default-calendar
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php25
1 files changed, 15 insertions, 10 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
index 93a98aa059f..b651379c2bd 100644
--- a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
+++ b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php
@@ -77,17 +77,22 @@ class PluginTest extends TestCase {
public function testInitialize() {
$plugin = new Plugin($this->config);
- $this->server->expects($this->at(7))
+ $this->server->expects($this->exactly(10))
->method('on')
- ->with('propFind', [$plugin, 'propFindDefaultCalendarUrl'], 90);
-
- $this->server->expects($this->at(8))
- ->method('on')
- ->with('afterWriteContent', [$plugin, 'dispatchSchedulingResponses']);
-
- $this->server->expects($this->at(9))
- ->method('on')
- ->with('afterCreateFile', [$plugin, 'dispatchSchedulingResponses']);
+ ->withConsecutive(
+ // Sabre\CalDAV\Schedule\Plugin events
+ ['method:POST', [$plugin, 'httpPost']],
+ ['propFind', [$plugin, 'propFind']],
+ ['propPatch', [$plugin, 'propPatch']],
+ ['calendarObjectChange', [$plugin, 'calendarObjectChange']],
+ ['beforeUnbind', [$plugin, 'beforeUnbind']],
+ ['schedule', [$plugin, 'scheduleLocalDelivery']],
+ ['getSupportedPrivilegeSet', [$plugin, 'getSupportedPrivilegeSet']],
+ // OCA\DAV\CalDAV\Schedule\Plugin events
+ ['propFind', [$plugin, 'propFindDefaultCalendarUrl'], 90],
+ ['afterWriteContent', [$plugin, 'dispatchSchedulingResponses']],
+ ['afterCreateFile', [$plugin, 'dispatchSchedulingResponses']]
+ );
$plugin->initialize($this->server);
}