mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix getMock MetaDataTest
This commit is contained in:
parent
7656a8fa12
commit
28c801b3d5
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue