aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-12-04 17:05:52 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-12-05 00:03:05 +0100
commitf5ad80fc5774934b5f05c3538cd12218f2b17d21 (patch)
tree4da08f3845301b00dfda5b9ac295c443ada0e7c7 /tests
parent441496a5a579a30d21c9545d32429281de66bd24 (diff)
downloadnextcloud-server-f5ad80fc5774934b5f05c3538cd12218f2b17d21.tar.gz
nextcloud-server-f5ad80fc5774934b5f05c3538cd12218f2b17d21.zip
Add setup check for recommended PHP modules (i.e. Imagick, intl)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/Settings/Controller/CheckSetupControllerTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php
index 7731e08eed0..e85750f6b14 100644
--- a/tests/Settings/Controller/CheckSetupControllerTest.php
+++ b/tests/Settings/Controller/CheckSetupControllerTest.php
@@ -158,6 +158,7 @@ class CheckSetupControllerTest extends TestCase {
'isPhpMailerUsed',
'hasOpcacheLoaded',
'getAppDirsWithDifferentOwner',
+ 'hasRecommendedPHPModules',
])->getMock();
}
@@ -487,6 +488,11 @@ class CheckSetupControllerTest extends TestCase {
->method('getAppDirsWithDifferentOwner')
->willReturn([]);
+ $this->checkSetupController
+ ->expects($this->once())
+ ->method('hasRecommendedPHPModules')
+ ->willReturn([]);
+
$expected = new DataResponse(
[
'isGetenvServerWorking' => true,
@@ -529,6 +535,7 @@ class CheckSetupControllerTest extends TestCase {
'mailSettingsDocumentation' => 'https://server/index.php/settings/admin',
'isMemoryLimitSufficient' => true,
'appDirsWithDifferentOwner' => [],
+ 'recommendedPHPModules' => [],
]
);
$this->assertEquals($expected, $this->checkSetupController->check());