aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 21:38:56 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 09:09:53 +0200
commit1d166d645b5867e8a73def1f25bef7d522efd482 (patch)
tree5918bf4d763b72e60d75a48102cac76188d06e75
parent7bc2d178cad6500853210a7b57120911c7611eff (diff)
downloadnextcloud-server-1d166d645b5867e8a73def1f25bef7d522efd482.tar.gz
nextcloud-server-1d166d645b5867e8a73def1f25bef7d522efd482.zip
Fix getMock ManagerTest
-rw-r--r--tests/lib/Share20/ManagerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php
index 16ad1b07f89..72ba4da6e5d 100644
--- a/tests/lib/Share20/ManagerTest.php
+++ b/tests/lib/Share20/ManagerTest.php
@@ -2413,7 +2413,7 @@ class ManagerTest extends \Test\TestCase {
$tomorrow->setTime(0,0,0);
$tomorrow->add(new \DateInterval('P1D'));
- $file = $this->getMock('OCP\Files\File', [], [], 'File');
+ $file = $this->createMock(File::class);
$file->method('getId')->willReturn(100);
$share = $this->manager->newShare();