aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/Controller/CheckSetupControllerTest.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-11-16 17:15:21 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-08 15:09:09 +0100
commit989b5ffbab5a5c06da36c9c3e9fe1b9047b2ac81 (patch)
tree1b07e0d3709ca9438d87b5267a2449219b5a4e50 /apps/settings/tests/Controller/CheckSetupControllerTest.php
parent3f13a1a47e13cc1c09602c04016c4ff49c3621a2 (diff)
downloadnextcloud-server-989b5ffbab5a5c06da36c9c3e9fe1b9047b2ac81.tar.gz
nextcloud-server-989b5ffbab5a5c06da36c9c3e9fe1b9047b2ac81.zip
Remove unused properties from CheckSetupControllerTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/tests/Controller/CheckSetupControllerTest.php')
-rw-r--r--apps/settings/tests/Controller/CheckSetupControllerTest.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php
index d732b615a0e..b9c2ddc8282 100644
--- a/apps/settings/tests/Controller/CheckSetupControllerTest.php
+++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php
@@ -37,21 +37,17 @@ namespace OCA\Settings\Tests\Controller;
use OC;
use OC\IntegrityCheck\Checker;
use OCA\Settings\Controller\CheckSetupController;
-use OCP\App\IAppManager;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\RedirectResponse;
-use OCP\EventDispatcher\IEventDispatcher;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\IDateTimeFormatter;
use OCP\IL10N;
use OCP\IRequest;
-use OCP\IServerContainer;
use OCP\ITempManager;
use OCP\IURLGenerator;
-use OCP\Lock\ILockingProvider;
use OCP\Notification\IManager;
use OCP\SetupCheck\ISetupCheckManager;
use PHPUnit\Framework\MockObject\MockObject;
@@ -82,20 +78,12 @@ class CheckSetupControllerTest extends TestCase {
private $logger;
/** @var Checker|\PHPUnit\Framework\MockObject\MockObject */
private $checker;
- /** @var IEventDispatcher|\PHPUnit\Framework\MockObject\MockObject */
- private $dispatcher;
- /** @var ILockingProvider|\PHPUnit\Framework\MockObject\MockObject */
- private $lockingProvider;
/** @var IDateTimeFormatter|\PHPUnit\Framework\MockObject\MockObject */
private $dateTimeFormatter;
/** @var ITempManager|\PHPUnit\Framework\MockObject\MockObject */
private $tempManager;
/** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
private $notificationManager;
- /** @var IAppManager|MockObject */
- private $appManager;
- /** @var IServerContainer|MockObject */
- private $serverContainer;
/** @var ISetupCheckManager|MockObject */
private $setupCheckManager;
@@ -124,16 +112,12 @@ class CheckSetupControllerTest extends TestCase {
->willReturnCallback(function ($message, array $replace) {
return vsprintf($message, $replace);
});
- $this->dispatcher = $this->createMock(IEventDispatcher::class);
$this->checker = $this->getMockBuilder('\OC\IntegrityCheck\Checker')
->disableOriginalConstructor()->getMock();
$this->logger = $this->getMockBuilder(LoggerInterface::class)->getMock();
- $this->lockingProvider = $this->getMockBuilder(ILockingProvider::class)->getMock();
$this->dateTimeFormatter = $this->getMockBuilder(IDateTimeFormatter::class)->getMock();
$this->tempManager = $this->getMockBuilder(ITempManager::class)->getMock();
$this->notificationManager = $this->getMockBuilder(IManager::class)->getMock();
- $this->appManager = $this->createMock(IAppManager::class);
- $this->serverContainer = $this->createMock(IServerContainer::class);
$this->setupCheckManager = $this->createMock(ISetupCheckManager::class);
$this->checkSetupController = $this->getMockBuilder(CheckSetupController::class)
->setConstructorArgs([
@@ -145,13 +129,9 @@ class CheckSetupControllerTest extends TestCase {
$this->l10n,
$this->checker,
$this->logger,
- $this->dispatcher,
- $this->lockingProvider,
$this->dateTimeFormatter,
$this->tempManager,
$this->notificationManager,
- $this->appManager,
- $this->serverContainer,
$this->setupCheckManager,
])
->setMethods([
@@ -316,13 +296,9 @@ class CheckSetupControllerTest extends TestCase {
$this->l10n,
$this->checker,
$this->logger,
- $this->dispatcher,
- $this->lockingProvider,
$this->dateTimeFormatter,
$this->tempManager,
$this->notificationManager,
- $this->appManager,
- $this->serverContainer,
$this->setupCheckManager,
])
->setMethods(null)->getMock();
@@ -1039,13 +1015,9 @@ Array
$this->l10n,
$this->checker,
$this->logger,
- $this->dispatcher,
- $this->lockingProvider,
$this->dateTimeFormatter,
$this->tempManager,
$this->notificationManager,
- $this->appManager,
- $this->serverContainer,
$this->setupCheckManager,
);
@@ -1089,13 +1061,9 @@ Array
$this->l10n,
$this->checker,
$this->logger,
- $this->dispatcher,
- $this->lockingProvider,
$this->dateTimeFormatter,
$this->tempManager,
$this->notificationManager,
- $this->appManager,
- $this->serverContainer,
$this->setupCheckManager,
);