diff options
Diffstat (limited to 'apps/files/tests/BackgroundJob/ScanFilesTest.php')
-rw-r--r-- | apps/files/tests/BackgroundJob/ScanFilesTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/tests/BackgroundJob/ScanFilesTest.php b/apps/files/tests/BackgroundJob/ScanFilesTest.php index 16bf1d793b7..877c3bafd6d 100644 --- a/apps/files/tests/BackgroundJob/ScanFilesTest.php +++ b/apps/files/tests/BackgroundJob/ScanFilesTest.php @@ -21,6 +21,7 @@ */ namespace OCA\Files\Tests\BackgroundJob; +use OCP\IUser; use Test\TestCase; use OCP\IConfig; use OCP\IUserManager; @@ -42,8 +43,8 @@ class ScanFilesTest extends TestCase { public function setUp() { parent::setUp(); - $this->config = $this->getMock('\OCP\IConfig'); - $this->userManager = $this->getMock('\OCP\IUserManager'); + $this->config = $this->createMock(IConfig::class); + $this->userManager = $this->createMock(IUserManager::class); $this->scanFiles = $this->getMockBuilder('\OCA\Files\BackgroundJob\ScanFiles') ->setConstructorArgs([ @@ -79,7 +80,7 @@ class ScanFilesTest extends TestCase { } public function testRunWithUsers() { - $fakeUser = $this->getMock('\OCP\IUser'); + $fakeUser = $this->createMock(IUser::class); $this->config ->expects($this->at(0)) ->method('getAppValue') |