Commit 6aebb84e authored by Vincent Petry's avatar Vincent Petry Committed by Thomas Müller
Browse files

Fix mock warning in some FS tests (#26464)

parent ae989e61
......@@ -399,7 +399,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())
......
......@@ -116,7 +116,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())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment