Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix getMock MetaDataTest
  • Loading branch information
rullzer committed Sep 7, 2016
commit 28c801b3d5e226ffb474fa888fe97f94579664b2
4 changes: 3 additions & 1 deletion tests/lib/Group/MetaDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

namespace Test\Group;

use OCP\IUserSession;

class MetaDataTest extends \Test\TestCase {
/** @var \OC\Group\Manager */
private $groupManager;
Expand All @@ -37,7 +39,7 @@ public function setUp() {
$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,
Expand Down