Browse Source

Fix getMock MetaDataTest

tags/v11.0RC2
Roeland Jago Douma 7 years ago
parent
commit
28c801b3d5
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      tests/lib/Group/MetaDataTest.php

+ 3
- 1
tests/lib/Group/MetaDataTest.php 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,

Loading…
Cancel
Save