Fix mock warning in some FS tests (#26464)

This commit is contained in:
Vincent Petry 2016-10-24 22:17:37 +02:00 committed by Lukas Reschke
parent f737426eca
commit 889e0a574b
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1
2 changed files with 2 additions and 2 deletions

View file

@ -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())

View file

@ -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())