aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Comments
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 20:59:01 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 09:09:52 +0200
commit16e88a7ebf8e355b611055817c1459ed5d51c71f (patch)
tree093e6f48b9177ab9fa6f5853ba8022f1ff79ab69 /tests/lib/Comments
parent77779d678f6efd5c1679348d72ad23aa75b61c56 (diff)
downloadnextcloud-server-16e88a7ebf8e355b611055817c1459ed5d51c71f.tar.gz
nextcloud-server-16e88a7ebf8e355b611055817c1459ed5d51c71f.zip
Fix getMock ManagerTest
Diffstat (limited to 'tests/lib/Comments')
-rw-r--r--tests/lib/Comments/ManagerTest.php9
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'));