fix test
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
c9622ccb62
commit
e62ae5b2df
|
@ -24,6 +24,7 @@ namespace OCA\User_LDAP\Tests;
|
|||
use OCA\User_LDAP\ILDAPWrapper;
|
||||
use OCA\User_LDAP\User_Proxy;
|
||||
use OCP\IConfig;
|
||||
use OCP\IUserSession;
|
||||
use OCP\Notification\IManager as INotificationManager;
|
||||
use Test\TestCase;
|
||||
|
||||
|
@ -32,8 +33,10 @@ class User_ProxyTest extends TestCase {
|
|||
private $ldapWrapper;
|
||||
/** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
|
||||
private $config;
|
||||
/** @var IManager|\PHPUnit_Framework_MockObject_MockObject */
|
||||
/** @var INotificationManager|\PHPUnit_Framework_MockObject_MockObject */
|
||||
private $notificationManager;
|
||||
/** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
|
||||
private $userSession;
|
||||
/** @var User_Proxy|\PHPUnit_Framework_MockObject_MockObject */
|
||||
private $proxy;
|
||||
|
||||
|
@ -43,12 +46,14 @@ class User_ProxyTest extends TestCase {
|
|||
$this->ldapWrapper = $this->createMock(ILDAPWrapper::class);
|
||||
$this->config = $this->createMock(IConfig::class);
|
||||
$this->notificationManager = $this->createMock(INotificationManager::class);
|
||||
$this->userSession = $this->createMock(IUserSession::class);
|
||||
$this->proxy = $this->getMockBuilder(User_Proxy::class)
|
||||
->setConstructorArgs([
|
||||
[],
|
||||
$this->ldapWrapper,
|
||||
$this->config,
|
||||
$this->notificationManager,
|
||||
$this->userSession,
|
||||
])
|
||||
->setMethods(['handleRequest'])
|
||||
->getMock();
|
||||
|
|
Loading…
Reference in New Issue