Remove unused IUserSession
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
2d00e2bbe7
commit
942281a48e
|
@ -45,8 +45,6 @@ class Admin implements ISettings {
|
|||
private $groupManager;
|
||||
/** @var IDateTimeFormatter */
|
||||
private $dateTimeFormatter;
|
||||
/** @var IUserSession */
|
||||
private $session;
|
||||
/** @var IFactory */
|
||||
private $l10nFactory;
|
||||
|
||||
|
@ -55,14 +53,12 @@ class Admin implements ISettings {
|
|||
UpdateChecker $updateChecker,
|
||||
IGroupManager $groupManager,
|
||||
IDateTimeFormatter $dateTimeFormatter,
|
||||
IUserSession $session,
|
||||
IFactory $l10nFactory
|
||||
) {
|
||||
$this->config = $config;
|
||||
$this->updateChecker = $updateChecker;
|
||||
$this->groupManager = $groupManager;
|
||||
$this->dateTimeFormatter = $dateTimeFormatter;
|
||||
$this->session = $session;
|
||||
$this->l10nFactory = $l10nFactory;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@ use OCP\Util;
|
|||
use Test\TestCase;
|
||||
|
||||
class AdminTest extends TestCase {
|
||||
/** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
|
||||
protected $userSession;
|
||||
/** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */
|
||||
protected $l10nFactory;
|
||||
/** @var Admin */
|
||||
|
@ -61,11 +59,10 @@ class AdminTest extends TestCase {
|
|||
$this->updateChecker = $this->createMock(UpdateChecker::class);
|
||||
$this->groupManager = $this->createMock(IGroupManager::class);
|
||||
$this->dateTimeFormatter = $this->createMock(IDateTimeFormatter::class);
|
||||
$this->userSession = $this->createMock(IUserSession::class);
|
||||
$this->l10nFactory = $this->createMock(IFactory::class);
|
||||
|
||||
$this->admin = new Admin(
|
||||
$this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->userSession, $this->l10nFactory
|
||||
$this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->l10nFactory
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue