From 889e0a574b3eb323066bbcfb79ef06c23e36b53f Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Mon, 24 Oct 2016 22:17:37 +0200
Subject: [PATCH] Fix mock warning in some FS tests (#26464)

---
 tests/lib/Files/FilesystemTest.php | 2 +-
 tests/lib/Files/Node/RootTest.php  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/lib/Files/FilesystemTest.php b/tests/lib/Files/FilesystemTest.php
index fb9dee15051..04eafc99f36 100644
--- a/tests/lib/Files/FilesystemTest.php
+++ b/tests/lib/Files/FilesystemTest.php
@@ -376,7 +376,7 @@ class FilesystemTest extends \Test\TestCase {
 
 		\OC_User::clearBackends();
 		// needed for loginName2UserName mapping
-		$userBackend = $this->getMock('\OC\User\Database');
+		$userBackend = $this->createMock(\OC\User\Database::class);
 		\OC::$server->getUserManager()->registerBackend($userBackend);
 
 		$userBackend->expects($this->once())
diff --git a/tests/lib/Files/Node/RootTest.php b/tests/lib/Files/Node/RootTest.php
index 35ba8a6c223..534dd330328 100644
--- a/tests/lib/Files/Node/RootTest.php
+++ b/tests/lib/Files/Node/RootTest.php
@@ -141,7 +141,7 @@ class RootTest extends \Test\TestCase {
 
 		\OC_User::clearBackends();
 		// needed for loginName2UserName mapping
-		$userBackend = $this->getMock('\OC\User\Database');
+		$userBackend = $this->createMock(\OC\User\Database::class);
 		\OC::$server->getUserManager()->registerBackend($userBackend);
 
 		$userBackend->expects($this->any())
-- 
GitLab