diff options
Diffstat (limited to 'tests/lib/Group/MetaDataTest.php')
-rw-r--r-- | tests/lib/Group/MetaDataTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Group/MetaDataTest.php b/tests/lib/Group/MetaDataTest.php index 593bbcb48db..04d2ff807b4 100644 --- a/tests/lib/Group/MetaDataTest.php +++ b/tests/lib/Group/MetaDataTest.php @@ -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, |