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;
|
private $groupManager;
|
||||||
/** @var IDateTimeFormatter */
|
/** @var IDateTimeFormatter */
|
||||||
private $dateTimeFormatter;
|
private $dateTimeFormatter;
|
||||||
/** @var IUserSession */
|
|
||||||
private $session;
|
|
||||||
/** @var IFactory */
|
/** @var IFactory */
|
||||||
private $l10nFactory;
|
private $l10nFactory;
|
||||||
|
|
||||||
|
@ -55,14 +53,12 @@ class Admin implements ISettings {
|
||||||
UpdateChecker $updateChecker,
|
UpdateChecker $updateChecker,
|
||||||
IGroupManager $groupManager,
|
IGroupManager $groupManager,
|
||||||
IDateTimeFormatter $dateTimeFormatter,
|
IDateTimeFormatter $dateTimeFormatter,
|
||||||
IUserSession $session,
|
|
||||||
IFactory $l10nFactory
|
IFactory $l10nFactory
|
||||||
) {
|
) {
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->updateChecker = $updateChecker;
|
$this->updateChecker = $updateChecker;
|
||||||
$this->groupManager = $groupManager;
|
$this->groupManager = $groupManager;
|
||||||
$this->dateTimeFormatter = $dateTimeFormatter;
|
$this->dateTimeFormatter = $dateTimeFormatter;
|
||||||
$this->session = $session;
|
|
||||||
$this->l10nFactory = $l10nFactory;
|
$this->l10nFactory = $l10nFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,6 @@ use OCP\Util;
|
||||||
use Test\TestCase;
|
use Test\TestCase;
|
||||||
|
|
||||||
class AdminTest extends TestCase {
|
class AdminTest extends TestCase {
|
||||||
/** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
|
|
||||||
protected $userSession;
|
|
||||||
/** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */
|
/** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */
|
||||||
protected $l10nFactory;
|
protected $l10nFactory;
|
||||||
/** @var Admin */
|
/** @var Admin */
|
||||||
|
@ -61,11 +59,10 @@ class AdminTest extends TestCase {
|
||||||
$this->updateChecker = $this->createMock(UpdateChecker::class);
|
$this->updateChecker = $this->createMock(UpdateChecker::class);
|
||||||
$this->groupManager = $this->createMock(IGroupManager::class);
|
$this->groupManager = $this->createMock(IGroupManager::class);
|
||||||
$this->dateTimeFormatter = $this->createMock(IDateTimeFormatter::class);
|
$this->dateTimeFormatter = $this->createMock(IDateTimeFormatter::class);
|
||||||
$this->userSession = $this->createMock(IUserSession::class);
|
|
||||||
$this->l10nFactory = $this->createMock(IFactory::class);
|
$this->l10nFactory = $this->createMock(IFactory::class);
|
||||||
|
|
||||||
$this->admin = new Admin(
|
$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