Fix getMock ManagerTest

pull/1378/head
Roeland Jago Douma 10 years ago
parent 77779d678f
commit 16e88a7ebf
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
  1. 9
      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'));

Loading…
Cancel
Save