From b98fbcb7746772beb389607ecccdcb0003cfe8e9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 2 Dec 2020 20:53:17 +0100 Subject: [PATCH] We can no longe mock multiple interfaces Signed-off-by: Roeland Jago Douma --- .../UpdateCalendarResourcesRoomsBackgroundJobTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php index 55938c72e2..3dfef3ed01 100644 --- a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php +++ b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php @@ -38,6 +38,10 @@ use OCP\Calendar\Resource\IResource; use OCP\Calendar\Room\IManager as IRoomManager; use Test\TestCase; +interface tmpI extends IResource, IMetadataProvider { + +} + class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase { /** @var UpdateCalendarResourcesRoomsBackgroundJob */ @@ -108,9 +112,9 @@ class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase { $backend3 = $this->createMock(IBackend::class); $backend4 = $this->createMock(IBackend::class); - $res6 = $this->createMock([IResource::class, IMetadataProvider::class]); - $res7 = $this->createMock([IResource::class, IMetadataProvider::class]); - $res8 = $this->createMock([IResource::class, IMetadataProvider::class]); + $res6 = $this->createMock(tmpI::class); + $res7 = $this->createMock(tmpI::class); + $res8 = $this->createMock(tmpI::class); $res9 = $this->createMock(IResource::class); $backend2->method('getBackendIdentifier')