Fix trying to use MockBuilder instead of Mock

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2022-09-06 09:05:36 +02:00
parent 0b37d89893
commit 98c525a91a
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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';