diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-02-15 09:40:36 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-02-23 08:45:48 +0300 |
commit | cee8853658703358a8e564c414807c632ee0d5ea (patch) | |
tree | b7ecd1915099914b4d2f8ccec9c3fe16e7008107 /tests/Settings | |
parent | 41276f720b838681d571c40da937e0b143c9fdf6 (diff) |
Show info in admin settings about PHP opcache if disabled
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/Controller/CheckSetupControllerTest.php | 12 |
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()); |