diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 21:59:01 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 10:09:52 +0300 |
commit | 16e88a7ebf8e355b611055817c1459ed5d51c71f (patch) | |
tree | 093e6f48b9177ab9fa6f5853ba8022f1ff79ab69 /tests/lib/Comments/ManagerTest.php | |
parent | 77779d678f6efd5c1679348d72ad23aa75b61c56 (diff) |
Fix getMock ManagerTest
Diffstat (limited to 'tests/lib/Comments/ManagerTest.php')
-rw-r--r-- | tests/lib/Comments/ManagerTest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index 90a8399eb2b..730d82d9d0d 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')); |