diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 22:13:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:53 +0200 |
commit | 368f407698bb71e7b06f20812e19288a618c64f6 (patch) | |
tree | 87bc5e455f4ed0ce29ddcfd134146567aad04b82 | |
parent | 206b48d250db30259061b1fb762fa4874c333773 (diff) | |
download | nextcloud-server-368f407698bb71e7b06f20812e19288a618c64f6.tar.gz nextcloud-server-368f407698bb71e7b06f20812e19288a618c64f6.zip |
Fix getMock UtilTest
-rw-r--r-- | tests/lib/UtilTest.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php index 33c15565b92..619963a2abf 100644 --- a/tests/lib/UtilTest.php +++ b/tests/lib/UtilTest.php @@ -9,7 +9,14 @@ namespace Test; use OC_Util; +use OCP\App\IAppManager; +/** + * Class UtilTest + * + * @package Test + * @group DB + */ class UtilTest extends \Test\TestCase { public function testGetVersion() { $version = \OCP\Util::getVersion(); @@ -300,7 +307,7 @@ class UtilTest extends \Test\TestCase { $oldWebRoot = \OC::$WEBROOT; \OC::$WEBROOT = ''; - $appManager = $this->getMock('\OCP\App\IAppManager'); + $appManager = $this->createMock(IAppManager::class); $appManager->expects($this->any()) ->method('isEnabledForUser') ->will($this->returnCallback(function($appId) use ($enabledApps){ |