Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-24 22:10:47 +0300
committerGitHub <noreply@github.com>2017-02-24 22:10:47 +0300
commit8a7b8f966e476173416cdd5fd7fc0e01de34aa1f (patch)
tree415e3add747e2bff7ea534d956c050dfddad2377 /tests/Settings
parentdd6d2893a66f68157c2fab4deb06f336642c6a02 (diff)
parentcee8853658703358a8e564c414807c632ee0d5ea (diff)
Merge pull request #3489 from nextcloud/give-hint-about-opcache
Show info in admin settings about PHP opcache if disabled
Diffstat (limited to 'tests/Settings')
-rw-r--r--tests/Settings/Controller/CheckSetupControllerTest.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php
index f087fec2105..e600f7e5e9c 100644
--- a/tests/Settings/Controller/CheckSetupControllerTest.php
+++ b/tests/Settings/Controller/CheckSetupControllerTest.php
@@ -311,6 +311,14 @@ class CheckSetupControllerTest extends TestCase {
->method('linkToDocs')
->with('admin-reverse-proxy')
->willReturn('reverse-proxy-doc-link');
+ $this->urlGenerator->expects($this->at(3))
+ ->method('linkToDocs')
+ ->with('admin-code-integrity')
+ ->willReturn('http://doc.owncloud.org/server/go.php?to=admin-code-integrity');
+ $this->urlGenerator->expects($this->at(4))
+ ->method('linkToDocs')
+ ->with('admin-php-opcache')
+ ->willReturn('http://doc.owncloud.org/server/go.php?to=admin-php-opcache');
$expected = new DataResponse(
[
@@ -328,7 +336,9 @@ class CheckSetupControllerTest extends TestCase {
'reverseProxyDocs' => 'reverse-proxy-doc-link',
'isCorrectMemcachedPHPModuleInstalled' => true,
'hasPassedCodeIntegrityCheck' => null,
- 'codeIntegrityCheckerDocumentation' => null,
+ 'codeIntegrityCheckerDocumentation' => 'http://doc.owncloud.org/server/go.php?to=admin-code-integrity',
+ 'isOpcacheProperlySetup' => false,
+ 'phpOpcacheDocumentation' => 'http://doc.owncloud.org/server/go.php?to=admin-php-opcache',
]
);
$this->assertEquals($expected, $this->checkSetupController->check());