diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:01:13 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:42:37 +0200 |
commit | 7656a8fa1210c096e677720f8ba0ab93affdd0e3 (patch) | |
tree | 3d2083c3b0e5596cfa5a2d6ae83f2600510b4fd7 /tests/lib/Files/ObjectStore | |
parent | a819fd3f1eb455871ce424efc8be311582a1d43a (diff) | |
download | nextcloud-server-7656a8fa1210c096e677720f8ba0ab93affdd0e3.tar.gz nextcloud-server-7656a8fa1210c096e677720f8ba0ab93affdd0e3.zip |
File getMock Files tests
Diffstat (limited to 'tests/lib/Files/ObjectStore')
-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 +} |