summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-05-25 15:55:04 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-05-25 15:55:04 +0200
commit367b4fe9f2361e9982dcd6e1e836f0bd3d37ce71 (patch)
tree5c5bf4aca37b313fe478ef516307706c088b4e9e
parentadd59d2309cc902923aab60dd4348164eed033fc (diff)
downloadnextcloud-server-367b4fe9f2361e9982dcd6e1e836f0bd3d37ce71.tar.gz
nextcloud-server-367b4fe9f2361e9982dcd6e1e836f0bd3d37ce71.zip
Fix User_Proxy tests as well
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/user_ldap/tests/User_ProxyTest.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/User_ProxyTest.php b/apps/user_ldap/tests/User_ProxyTest.php
index edeefeb4b0e..a557eb4bc6f 100644
--- a/apps/user_ldap/tests/User_ProxyTest.php
+++ b/apps/user_ldap/tests/User_ProxyTest.php
@@ -31,12 +31,14 @@ namespace OCA\User_LDAP\Tests;
use OCA\User_LDAP\AccessFactory;
use OCA\User_LDAP\Helper;
use OCA\User_LDAP\ILDAPWrapper;
+use OCA\User_LDAP\User\DeletedUsersIndex;
use OCA\User_LDAP\User_Proxy;
use OCA\User_LDAP\UserPluginManager;
use OCP\IConfig;
use OCP\IUserSession;
use OCP\Notification\IManager as INotificationManager;
use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
use Test\TestCase;
class User_ProxyTest extends TestCase {
@@ -56,6 +58,10 @@ class User_ProxyTest extends TestCase {
private $proxy;
/** @var UserPluginManager|MockObject */
private $userPluginManager;
+ /** @var LoggerInterface|MockObject */
+ protected $logger;
+ /** @var DeletedUsersIndex|MockObject */
+ protected $deletedUsersIndex;
protected function setUp(): void {
parent::setUp();
@@ -67,6 +73,8 @@ class User_ProxyTest extends TestCase {
$this->notificationManager = $this->createMock(INotificationManager::class);
$this->userSession = $this->createMock(IUserSession::class);
$this->userPluginManager = $this->createMock(UserPluginManager::class);
+ $this->logger = $this->createMock(LoggerInterface::class);
+ $this->deletedUsersIndex = $this->createMock(DeletedUsersIndex::class);
$this->proxy = $this->getMockBuilder(User_Proxy::class)
->setConstructorArgs([
$this->helper,
@@ -75,7 +83,9 @@ class User_ProxyTest extends TestCase {
$this->config,
$this->notificationManager,
$this->userSession,
- $this->userPluginManager
+ $this->userPluginManager,
+ $this->logger,
+ $this->deletedUsersIndex,
])
->setMethods(['handleRequest'])
->getMock();