aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/ObjectStore
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:01:13 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:37 +0200
commit7656a8fa1210c096e677720f8ba0ab93affdd0e3 (patch)
tree3d2083c3b0e5596cfa5a2d6ae83f2600510b4fd7 /tests/lib/Files/ObjectStore
parenta819fd3f1eb455871ce424efc8be311582a1d43a (diff)
downloadnextcloud-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.php5
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
+}