From 4a0b7aaf6c80f59552b1da861432476a8ac4c7cf Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 12 Jun 2018 16:16:29 +0200 Subject: Merge tips & tricks section into setup checks Signed-off-by: Morris Jobke --- tests/Settings/Controller/CheckSetupControllerTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/Settings/Controller/CheckSetupControllerTest.php') diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php index 7760be16499..f0e19e007f2 100644 --- a/tests/Settings/Controller/CheckSetupControllerTest.php +++ b/tests/Settings/Controller/CheckSetupControllerTest.php @@ -103,7 +103,7 @@ class CheckSetupControllerTest extends TestCase { $this->logger, $this->dispatcher, ]) - ->setMethods(['getCurlVersion', 'isPhpOutdated', 'isOpcacheProperlySetup', 'hasFreeTypeSupport', 'hasMissingIndexes'])->getMock(); + ->setMethods(['getCurlVersion', 'isPhpOutdated', 'isOpcacheProperlySetup', 'hasFreeTypeSupport', 'hasMissingIndexes', 'isSqliteUsed'])->getMock(); } public function testIsInternetConnectionWorkingDisabledViaConfig() { @@ -332,12 +332,19 @@ class CheckSetupControllerTest extends TestCase { ->method('linkToDocs') ->with('admin-php-opcache') ->willReturn('http://docs.example.org/server/go.php?to=admin-php-opcache'); + $this->urlGenerator->expects($this->at(5)) + ->method('linkToDocs') + ->with('admin-db-conversion') + ->willReturn('http://docs.example.org/server/go.php?to=admin-db-conversion'); $this->checkSetupController ->method('hasFreeTypeSupport') ->willReturn(false); $this->checkSetupController ->method('hasMissingIndexes') ->willReturn([]); + $this->checkSetupController + ->method('isSqliteUsed') + ->willReturn(false); $expected = new DataResponse( [ @@ -361,6 +368,8 @@ class CheckSetupControllerTest extends TestCase { 'isSettimelimitAvailable' => true, 'hasFreeTypeSupport' => false, 'hasMissingIndexes' => [], + 'isSqliteUsed' => false, + 'databaseConversionDocumentation' => 'http://docs.example.org/server/go.php?to=admin-db-conversion', ] ); $this->assertEquals($expected, $this->checkSetupController->check()); -- cgit v1.2.3