From 16e88a7ebf8e355b611055817c1459ed5d51c71f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 12 Sep 2016 20:59:01 +0200 Subject: [PATCH] Fix getMock ManagerTest --- tests/lib/Comments/ManagerTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index 90a8399eb2..730d82d9d0 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -3,6 +3,7 @@ namespace Test\Comments; use OCP\Comments\ICommentsManager; +use OCP\IUser; use Test\TestCase; /** @@ -561,7 +562,7 @@ class ManagerTest extends TestCase { } public function testSetMarkRead() { - $user = $this->getMock('\OCP\IUser'); + $user = $this->createMock(IUser::class); $user->expects($this->any()) ->method('getUID') ->will($this->returnValue('alice')); @@ -577,7 +578,7 @@ class ManagerTest extends TestCase { } public function testSetMarkReadUpdate() { - $user = $this->getMock('\OCP\IUser'); + $user = $this->createMock(IUser::class); $user->expects($this->any()) ->method('getUID') ->will($this->returnValue('alice')); @@ -596,7 +597,7 @@ class ManagerTest extends TestCase { } public function testReadMarkDeleteUser() { - $user = $this->getMock('\OCP\IUser'); + $user = $this->createMock(IUser::class); $user->expects($this->any()) ->method('getUID') ->will($this->returnValue('alice')); @@ -613,7 +614,7 @@ class ManagerTest extends TestCase { } public function testReadMarkDeleteObject() { - $user = $this->getMock('\OCP\IUser'); + $user = $this->createMock(IUser::class); $user->expects($this->any()) ->method('getUID') ->will($this->returnValue('alice'));