Fix mock warning in some FS tests (#26464)
This commit is contained in:
parent
f737426eca
commit
889e0a574b
2 changed files with 2 additions and 2 deletions
|
@ -376,7 +376,7 @@ class FilesystemTest extends \Test\TestCase {
|
||||||
|
|
||||||
\OC_User::clearBackends();
|
\OC_User::clearBackends();
|
||||||
// needed for loginName2UserName mapping
|
// needed for loginName2UserName mapping
|
||||||
$userBackend = $this->getMock('\OC\User\Database');
|
$userBackend = $this->createMock(\OC\User\Database::class);
|
||||||
\OC::$server->getUserManager()->registerBackend($userBackend);
|
\OC::$server->getUserManager()->registerBackend($userBackend);
|
||||||
|
|
||||||
$userBackend->expects($this->once())
|
$userBackend->expects($this->once())
|
||||||
|
|
|
@ -141,7 +141,7 @@ class RootTest extends \Test\TestCase {
|
||||||
|
|
||||||
\OC_User::clearBackends();
|
\OC_User::clearBackends();
|
||||||
// needed for loginName2UserName mapping
|
// needed for loginName2UserName mapping
|
||||||
$userBackend = $this->getMock('\OC\User\Database');
|
$userBackend = $this->createMock(\OC\User\Database::class);
|
||||||
\OC::$server->getUserManager()->registerBackend($userBackend);
|
\OC::$server->getUserManager()->registerBackend($userBackend);
|
||||||
|
|
||||||
$userBackend->expects($this->any())
|
$userBackend->expects($this->any())
|
||||||
|
|
Loading…
Reference in a new issue