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/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-09-06 10:05:36 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-09-06 10:05:36 +0300
commit98c525a91a33d1a083f0ded08febb36379ef0797 (patch)
tree40423ce76d01aa73b2d68f4192358c28b1cbffef /tests
parent0b37d8989396b96205ba6721a59c4b5ff5ce5fde (diff)
Fix trying to use MockBuilder instead of Mock
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Calendar/ManagerTest.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/lib/Calendar/ManagerTest.php b/tests/lib/Calendar/ManagerTest.php
index 824d9344a6b..9623c88e5c2 100644
--- a/tests/lib/Calendar/ManagerTest.php
+++ b/tests/lib/Calendar/ManagerTest.php
@@ -301,7 +301,8 @@ class ManagerTest extends TestCase {
])
->setMethods([
'getCalendarsForPrincipal'
- ]);
+ ])
+ ->getMock();
$principalUri = 'principals/user/linus';
$sender = 'pierre@general-store.com';
$recipient = 'linus@stardew-tent-living.com';
@@ -331,7 +332,8 @@ class ManagerTest extends TestCase {
])
->setMethods([
'getCalendarsForPrincipal'
- ]);
+ ])
+ ->getMock();
$calendar = $this->createMock(ICreateFromString::class);
$principalUri = 'principals/user/linus';
$sender = 'pierre@general-store.com';
@@ -367,7 +369,8 @@ class ManagerTest extends TestCase {
])
->setMethods([
'getCalendarsForPrincipal'
- ]);
+ ])
+ ->getMock();
$calendar = $this->createMock(ICreateFromString::class);
$principalUri = 'principals/user/linus';
$sender = 'pierre@general-store.com';
@@ -454,7 +457,8 @@ class ManagerTest extends TestCase {
])
->setMethods([
'getCalendarsForPrincipal'
- ]);
+ ])
+ ->getMock();
$principalUri = 'principals/user/pierre';
$sender = 'linus@stardew-tent-living.com';
$recipient = 'pierre@general-store.com';
@@ -486,7 +490,8 @@ class ManagerTest extends TestCase {
])
->setMethods([
'getCalendarsForPrincipal'
- ]);
+ ])
+ ->getMock();
$principalUri = 'principals/user/pierre';
$sender = 'clint@stardew-blacksmiths.com';
$recipient = 'pierre@general-store.com';
@@ -523,7 +528,8 @@ class ManagerTest extends TestCase {
])
->setMethods([
'getCalendarsForPrincipal'
- ]);
+ ])
+ ->getMock();
$principalUri = 'principals/user/pierre';
$sender = 'linus@stardew-tent-living.com';
$recipient = 'pierre@general-store.com';