diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 21:02:11 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 21:42:37 +0300 |
commit | 28c801b3d5e226ffb474fa888fe97f94579664b2 (patch) | |
tree | 8b542d66f36644ef825620612dbbd559c6f9395b | |
parent | 7656a8fa1210c096e677720f8ba0ab93affdd0e3 (diff) |
Fix getMock MetaDataTest
-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, |