Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 23:13:31 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 10:09:53 +0300
commit368f407698bb71e7b06f20812e19288a618c64f6 (patch)
tree87bc5e455f4ed0ce29ddcfd134146567aad04b82 /tests/lib/UtilTest.php
parent206b48d250db30259061b1fb762fa4874c333773 (diff)
Fix getMock UtilTest
Diffstat (limited to 'tests/lib/UtilTest.php')
-rw-r--r--tests/lib/UtilTest.php9
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){