Fix getMock MetaDataTest

This commit is contained in:
Roeland Jago Douma 2016-09-07 20:02:11 +02:00
parent 7656a8fa12
commit 28c801b3d5
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@
namespace Test\Group;
use OCP\IUserSession;
class MetaDataTest extends \Test\TestCase {
/** @var \OC\Group\Manager */
private $groupManager;
@ -37,7 +39,7 @@ class MetaDataTest extends \Test\TestCase {
$this->groupManager = $this->getMockBuilder('\OC\Group\Manager')
->disableOriginalConstructor()
->getMock();
$this->userSession = $this->getMock('\OCP\IUserSession');
$this->userSession = $this->createMock(IUserSession::class);
$this->groupMetadata = new \OC\Group\MetaData(
'foo',
$this->isAdmin,