From 1d166d645b5867e8a73def1f25bef7d522efd482 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 12 Sep 2016 21:38:56 +0200 Subject: [PATCH] Fix getMock ManagerTest --- tests/lib/Share20/ManagerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index 16ad1b07f8..72ba4da6e5 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();