private $groupManager;
/** @var IDateTimeFormatter */
private $dateTimeFormatter;
- /** @var IUserSession */
- private $session;
/** @var IFactory */
private $l10nFactory;
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;
}
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 */
$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
);
}