diff options
Diffstat (limited to 'apps/files_external/tests/Command/ApplicableTest.php')
-rw-r--r-- | apps/files_external/tests/Command/ApplicableTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/tests/Command/ApplicableTest.php b/apps/files_external/tests/Command/ApplicableTest.php index 7e2ba9563a2..70b18be6b7b 100644 --- a/apps/files_external/tests/Command/ApplicableTest.php +++ b/apps/files_external/tests/Command/ApplicableTest.php @@ -23,13 +23,15 @@ namespace OCA\Files_External\Tests\Command; use OCA\Files_External\Command\Applicable; +use OCP\IGroupManager; +use OCP\IUserManager; class ApplicableTest extends CommandTest { private function getInstance($storageService) { /** @var \OCP\IUserManager|\PHPUnit_Framework_MockObject_MockObject $userManager */ - $userManager = $this->getMock('\OCP\IUserManager'); + $userManager = $this->createMock(IUserManager::class); /** @var \OCP\IGroupManager|\PHPUnit_Framework_MockObject_MockObject $groupManager */ - $groupManager = $this->getMock('\OCP\IGroupManager'); + $groupManager = $this->createMock(IGroupManager::class); $userManager->expects($this->any()) ->method('userExists') |