diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php
index 33c15565b92ac1b81f0313608809a99b4a7462c0..619963a2abff474f27747b8925bd6ca9879fda47 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){