Merge pull request #26663 from nextcloud/bugfix/noid/fix-support-test
Fix support tests
This commit is contained in:
commit
cd5dd31ab0
|
@ -23,6 +23,7 @@
|
||||||
namespace Test\Support\Subscription;
|
namespace Test\Support\Subscription;
|
||||||
|
|
||||||
use OC\Support\Subscription\Registry;
|
use OC\Support\Subscription\Registry;
|
||||||
|
use OC\User\Database;
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\IGroup;
|
use OCP\IGroup;
|
||||||
use OCP\IGroupManager;
|
use OCP\IGroupManager;
|
||||||
|
@ -31,6 +32,8 @@ use OCP\IUserManager;
|
||||||
use OCP\Notification\IManager;
|
use OCP\Notification\IManager;
|
||||||
use OCP\Support\Subscription\ISubscription;
|
use OCP\Support\Subscription\ISubscription;
|
||||||
use OCP\Support\Subscription\ISupportedApps;
|
use OCP\Support\Subscription\ISupportedApps;
|
||||||
|
use OCP\User\Backend\ICountUsersBackend;
|
||||||
|
use OCP\UserInterface;
|
||||||
use PHPUnit\Framework\MockObject\MockObject;
|
use PHPUnit\Framework\MockObject\MockObject;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use Test\TestCase;
|
use Test\TestCase;
|
||||||
|
@ -212,8 +215,8 @@ class RegistryTest extends TestCase {
|
||||||
->method('getUsersForUserValue')
|
->method('getUsersForUserValue')
|
||||||
->with('core', 'enabled', 'false')
|
->with('core', 'enabled', 'false')
|
||||||
->willReturn(array_fill(0, $disabledUsers, ''));
|
->willReturn(array_fill(0, $disabledUsers, ''));
|
||||||
/* @var UserInterface|\PHPUnit\Framework\MockObject\MockObject $dummyBackend */
|
/* @var UserInterface|ICountUsersBackend|\PHPUnit\Framework\MockObject\MockObject $dummyBackend */
|
||||||
$dummyBackend = $this->createMock(UserInterface::class);
|
$dummyBackend = $this->createMock(Database::class);
|
||||||
$dummyBackend->expects($this->once())
|
$dummyBackend->expects($this->once())
|
||||||
->method('implementsActions')
|
->method('implementsActions')
|
||||||
->willReturn(true);
|
->willReturn(true);
|
||||||
|
|
Loading…
Reference in New Issue