summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV
diff options
context:
space:
mode:
authorMikael Saarinen <mikaels@iki.fi>2021-06-12 11:15:51 +0300
committerMikael Saarinen <mikaels@iki.fi>2021-06-23 09:50:45 +0300
commit14c33bb2e9fc32594fdbcffa1edde1f1e15665cc (patch)
tree44cb72c309b4e71ca1cefd5f89cfec580df0eb82 /apps/dav/tests/unit/CalDAV
parente065324e9b56b766e36cd9d31771126e0e0bfb62 (diff)
downloadnextcloud-server-14c33bb2e9fc32594fdbcffa1edde1f1e15665cc.tar.gz
nextcloud-server-14c33bb2e9fc32594fdbcffa1edde1f1e15665cc.zip
Add regex to match Windows 10 calendar user-agent
* Match first part of the Windows 10 calendar user-agent * Exposes subscribed calendars for Windows 10 calendar * Update unit test Signed-off-by: Mikael Saarinen <mikaels@iki.fi>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV')
-rw-r--r--apps/dav/tests/unit/CalDAV/WebcalCaching/PluginTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/WebcalCaching/PluginTest.php b/apps/dav/tests/unit/CalDAV/WebcalCaching/PluginTest.php
index b848a5d591a..310d266cd57 100644
--- a/apps/dav/tests/unit/CalDAV/WebcalCaching/PluginTest.php
+++ b/apps/dav/tests/unit/CalDAV/WebcalCaching/PluginTest.php
@@ -31,7 +31,7 @@ class PluginTest extends \Test\TestCase {
$request = $this->createMock(IRequest::class);
$request->expects($this->at(0))
->method('isUserAgent')
- ->with([])
+ ->with(Plugin::ENABLE_FOR_CLIENTS)
->willReturn(false);
$request->expects($this->at(1))
@@ -48,7 +48,7 @@ class PluginTest extends \Test\TestCase {
$request = $this->createMock(IRequest::class);
$request->expects($this->at(0))
->method('isUserAgent')
- ->with([])
+ ->with(Plugin::ENABLE_FOR_CLIENTS)
->willReturn(false);
$request->expects($this->at(1))