Skip to content

Commit

Permalink
We can no longe mock multiple interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Dec 2, 2020
1 parent cdb58a1 commit dac3310
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
use OCP\Calendar\Room\IManager as IRoomManager;
use Test\TestCase;

interface tmpI extends IResource, IMetadataProvider {

}

class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase {

/** @var UpdateCalendarResourcesRoomsBackgroundJob */
Expand Down Expand Up @@ -108,9 +112,9 @@ public function testRun() {
$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')
Expand Down

0 comments on commit dac3310

Please sign in to comment.