diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-25 16:16:59 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-25 16:16:59 +0200 |
commit | 5e74b1e9ad3cc1f79f5eda38194a49a26a4f6d85 (patch) | |
tree | e406b648e3009404230238de726f4aad700a2566 /apps/user_ldap | |
parent | 556e3c84e6c712e2974d6d35edb6abbdfe78dd9b (diff) | |
download | nextcloud-server-5e74b1e9ad3cc1f79f5eda38194a49a26a4f6d85.tar.gz nextcloud-server-5e74b1e9ad3cc1f79f5eda38194a49a26a4f6d85.zip |
Adapt test to User_Proxy constructor
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/tests/User_ProxyTest.php | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/apps/user_ldap/tests/User_ProxyTest.php b/apps/user_ldap/tests/User_ProxyTest.php index ed95344f115..edeefeb4b0e 100644 --- a/apps/user_ldap/tests/User_ProxyTest.php +++ b/apps/user_ldap/tests/User_ProxyTest.php @@ -28,6 +28,7 @@ */ 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_Proxy; @@ -35,22 +36,25 @@ use OCA\User_LDAP\UserPluginManager; use OCP\IConfig; use OCP\IUserSession; use OCP\Notification\IManager as INotificationManager; +use PHPUnit\Framework\MockObject\MockObject; use Test\TestCase; class User_ProxyTest extends TestCase { - /** @var Helper|\PHPUnit\Framework\MockObject\MockObject */ + /** @var Helper|MockObject */ protected $helper; - /** @var ILDAPWrapper|\PHPUnit\Framework\MockObject\MockObject */ + /** @var ILDAPWrapper|MockObject */ private $ldapWrapper; - /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */ + /** @var AccessFactory|MockObject */ + private $accessFactory; + /** @var IConfig|MockObject */ private $config; - /** @var INotificationManager|\PHPUnit\Framework\MockObject\MockObject */ + /** @var INotificationManager|MockObject */ private $notificationManager; - /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */ + /** @var IUserSession|MockObject */ private $userSession; - /** @var User_Proxy|\PHPUnit\Framework\MockObject\MockObject */ + /** @var User_Proxy|MockObject */ private $proxy; - /** @var UserPluginManager|\PHPUnit\Framework\MockObject\MockObject */ + /** @var UserPluginManager|MockObject */ private $userPluginManager; protected function setUp(): void { @@ -58,6 +62,7 @@ class User_ProxyTest extends TestCase { $this->helper = $this->createMock(Helper::class); $this->ldapWrapper = $this->createMock(ILDAPWrapper::class); + $this->accessFactory = $this->createMock(AccessFactory::class); $this->config = $this->createMock(IConfig::class); $this->notificationManager = $this->createMock(INotificationManager::class); $this->userSession = $this->createMock(IUserSession::class); @@ -66,6 +71,7 @@ class User_ProxyTest extends TestCase { ->setConstructorArgs([ $this->helper, $this->ldapWrapper, + $this->accessFactory, $this->config, $this->notificationManager, $this->userSession, |