We can no longe mock multiple interfaces

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-12-02 20:53:17 +01:00
parent 98eede7f68
commit b98fbcb774
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 7 additions and 3 deletions

View File

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