From 7656a8fa1210c096e677720f8ba0ab93affdd0e3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 7 Sep 2016 20:01:13 +0200 Subject: File getMock Files tests --- tests/lib/Files/ObjectStore/MapperTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/lib/Files/ObjectStore') 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 +} -- cgit v1.2.3