]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getMock MetaDataTest
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:02:11 +0000 (20:02 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:42:37 +0000 (20:42 +0200)
tests/lib/Group/MetaDataTest.php

index 593bbcb48db2286b3300a34baf585e604274f881..04d2ff807b479c081063409521915914f107bd9d 100644 (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,