aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-11-16 17:05:24 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-08 15:09:09 +0100
commit3f13a1a47e13cc1c09602c04016c4ff49c3621a2 (patch)
tree981974951e809f3a2e9f14aa5d39910644859961 /apps/settings/tests
parentab2bb2be6183d58f6851bed412ff98cc87bf5a2d (diff)
downloadnextcloud-server-3f13a1a47e13cc1c09602c04016c4ff49c3621a2.tar.gz
nextcloud-server-3f13a1a47e13cc1c09602c04016c4ff49c3621a2.zip
Migrate opcache check to new SetupCheck API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/tests')
-rw-r--r--apps/settings/tests/Controller/CheckSetupControllerTest.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php
index a4cd6bb0a96..d732b615a0e 100644
--- a/apps/settings/tests/Controller/CheckSetupControllerTest.php
+++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php
@@ -34,7 +34,6 @@
*/
namespace OCA\Settings\Tests\Controller;
-use bantu\IniGetWrapper\IniGetWrapper;
use OC;
use OC\IntegrityCheck\Checker;
use OCA\Settings\Controller\CheckSetupController;
@@ -89,8 +88,6 @@ class CheckSetupControllerTest extends TestCase {
private $lockingProvider;
/** @var IDateTimeFormatter|\PHPUnit\Framework\MockObject\MockObject */
private $dateTimeFormatter;
- /** @var IniGetWrapper|\PHPUnit\Framework\MockObject\MockObject */
- private $iniGetWrapper;
/** @var ITempManager|\PHPUnit\Framework\MockObject\MockObject */
private $tempManager;
/** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
@@ -133,7 +130,6 @@ class CheckSetupControllerTest extends TestCase {
$this->logger = $this->getMockBuilder(LoggerInterface::class)->getMock();
$this->lockingProvider = $this->getMockBuilder(ILockingProvider::class)->getMock();
$this->dateTimeFormatter = $this->getMockBuilder(IDateTimeFormatter::class)->getMock();
- $this->iniGetWrapper = $this->getMockBuilder(IniGetWrapper::class)->getMock();
$this->tempManager = $this->getMockBuilder(ITempManager::class)->getMock();
$this->notificationManager = $this->getMockBuilder(IManager::class)->getMock();
$this->appManager = $this->createMock(IAppManager::class);
@@ -152,7 +148,6 @@ class CheckSetupControllerTest extends TestCase {
$this->dispatcher,
$this->lockingProvider,
$this->dateTimeFormatter,
- $this->iniGetWrapper,
$this->tempManager,
$this->notificationManager,
$this->appManager,
@@ -164,7 +159,6 @@ class CheckSetupControllerTest extends TestCase {
'getSuggestedOverwriteCliURL',
'getCurlVersion',
'isPhpOutdated',
- 'getOpcacheSetupRecommendations',
'isPHPMailerUsed',
'getAppDirsWithDifferentOwner',
'isImagickEnabled',
@@ -210,10 +204,6 @@ class CheckSetupControllerTest extends TestCase {
->method('newClient');
$this->checkSetupController
->expects($this->once())
- ->method('getOpcacheSetupRecommendations')
- ->willReturn(['recommendation1', 'recommendation2']);
- $this->checkSetupController
- ->expects($this->once())
->method('getSuggestedOverwriteCliURL')
->willReturn('');
$this->checkSetupController
@@ -299,7 +289,6 @@ class CheckSetupControllerTest extends TestCase {
'isCorrectMemcachedPHPModuleInstalled' => true,
'hasPassedCodeIntegrityCheck' => true,
'codeIntegrityCheckerDocumentation' => 'http://docs.example.org/server/go.php?to=admin-code-integrity',
- 'OpcacheSetupRecommendations' => ['recommendation1', 'recommendation2'],
'isSettimelimitAvailable' => true,
'appDirsWithDifferentOwner' => [],
'isImagickEnabled' => false,
@@ -330,7 +319,6 @@ class CheckSetupControllerTest extends TestCase {
$this->dispatcher,
$this->lockingProvider,
$this->dateTimeFormatter,
- $this->iniGetWrapper,
$this->tempManager,
$this->notificationManager,
$this->appManager,
@@ -1054,7 +1042,6 @@ Array
$this->dispatcher,
$this->lockingProvider,
$this->dateTimeFormatter,
- $this->iniGetWrapper,
$this->tempManager,
$this->notificationManager,
$this->appManager,
@@ -1105,7 +1092,6 @@ Array
$this->dispatcher,
$this->lockingProvider,
$this->dateTimeFormatter,
- $this->iniGetWrapper,
$this->tempManager,
$this->notificationManager,
$this->appManager,