diff options
Diffstat (limited to 'tests/lib/Calendar/ManagerTest.php')
-rw-r--r-- | tests/lib/Calendar/ManagerTest.php | 18 |
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'; |