Don't assume the admin didn't configure Opcache correctly...
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8c703c954d
commit
06e60f88c5
|
@ -373,7 +373,7 @@ Raw output
|
||||||
* Checks whether a PHP opcache is properly set up
|
* Checks whether a PHP opcache is properly set up
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function isOpcacheProperlySetup() {
|
protected function isOpcacheProperlySetup() {
|
||||||
$iniWrapper = new IniGetWrapper();
|
$iniWrapper = new IniGetWrapper();
|
||||||
|
|
||||||
$isOpcacheProperlySetUp = true;
|
$isOpcacheProperlySetUp = true;
|
||||||
|
|
|
@ -68,8 +68,6 @@ class CheckSetupControllerTest extends TestCase {
|
||||||
->disableOriginalConstructor()->getMock();
|
->disableOriginalConstructor()->getMock();
|
||||||
$this->config = $this->getMockBuilder('\OCP\IConfig')
|
$this->config = $this->getMockBuilder('\OCP\IConfig')
|
||||||
->disableOriginalConstructor()->getMock();
|
->disableOriginalConstructor()->getMock();
|
||||||
$this->config = $this->getMockBuilder('\OCP\IConfig')
|
|
||||||
->disableOriginalConstructor()->getMock();
|
|
||||||
$this->clientService = $this->getMockBuilder('\OCP\Http\Client\IClientService')
|
$this->clientService = $this->getMockBuilder('\OCP\Http\Client\IClientService')
|
||||||
->disableOriginalConstructor()->getMock();
|
->disableOriginalConstructor()->getMock();
|
||||||
$this->util = $this->getMockBuilder('\OC_Util')
|
$this->util = $this->getMockBuilder('\OC_Util')
|
||||||
|
@ -98,7 +96,7 @@ class CheckSetupControllerTest extends TestCase {
|
||||||
$this->checker,
|
$this->checker,
|
||||||
$this->logger
|
$this->logger
|
||||||
])
|
])
|
||||||
->setMethods(['getCurlVersion', 'isPhpOutdated'])->getMock();
|
->setMethods(['getCurlVersion', 'isPhpOutdated', 'isOpcacheProperlySetup'])->getMock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIsInternetConnectionWorkingDisabledViaConfig() {
|
public function testIsInternetConnectionWorkingDisabledViaConfig() {
|
||||||
|
@ -307,6 +305,10 @@ class CheckSetupControllerTest extends TestCase {
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('isPhpOutdated')
|
->method('isPhpOutdated')
|
||||||
->willReturn(true);
|
->willReturn(true);
|
||||||
|
$this->checkSetupController
|
||||||
|
->expects($this->once())
|
||||||
|
->method('isOpcacheProperlySetup')
|
||||||
|
->willReturn(false);
|
||||||
$this->urlGenerator->expects($this->at(2))
|
$this->urlGenerator->expects($this->at(2))
|
||||||
->method('linkToDocs')
|
->method('linkToDocs')
|
||||||
->with('admin-reverse-proxy')
|
->with('admin-reverse-proxy')
|
||||||
|
|
Loading…
Reference in New Issue