diff options
Diffstat (limited to 'tests/lib/Files/ObjectStore/MapperTest.php')
-rw-r--r-- | tests/lib/Files/ObjectStore/MapperTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Files/ObjectStore/MapperTest.php b/tests/lib/Files/ObjectStore/MapperTest.php index 1ebb67a6905..18bdcdfd005 100644 --- a/tests/lib/Files/ObjectStore/MapperTest.php +++ b/tests/lib/Files/ObjectStore/MapperTest.php @@ -22,6 +22,7 @@ namespace Test\Files\ObjectStore; use OC\Files\ObjectStore\Mapper; +use OCP\IUser; class MapperTest extends \Test\TestCase { @@ -39,7 +40,7 @@ class MapperTest extends \Test\TestCase { * @param string $expectedBucket */ public function testGetBucket($username, $expectedBucket) { - $user = $this->getMock('OCP\IUser'); + $user = $this->createMock(IUser::class); $user->method('getUID') ->willReturn($username); @@ -47,4 +48,4 @@ class MapperTest extends \Test\TestCase { $this->assertSame($expectedBucket, $mapper->getBucket()); } -}
\ No newline at end of file +} |