mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Fix trying to use MockBuilder instead of Mock
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
0b37d89893
commit
98c525a91a
1 changed files with 12 additions and 6 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue