diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-13 13:18:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 13:18:40 +0200 |
commit | cd87a40eb3a2b7026dfd1822e6e43e131edd3423 (patch) | |
tree | b43828c49e674e9d1507debcc1991ff193f394fd /tests/Settings/Controller/CheckSetupControllerTest.php | |
parent | 6756c8d2b522834e441ceb65b55bb02299dc718c (diff) | |
parent | 4a0b7aaf6c80f59552b1da861432476a8ac4c7cf (diff) | |
download | nextcloud-server-cd87a40eb3a2b7026dfd1822e6e43e131edd3423.tar.gz nextcloud-server-cd87a40eb3a2b7026dfd1822e6e43e131edd3423.zip |
Merge pull request #9836 from nextcloud/feature/noid/merge-tips-and-tricks-into-setup-checks
Merge tips & tricks section into setup checks
Diffstat (limited to 'tests/Settings/Controller/CheckSetupControllerTest.php')
-rw-r--r-- | tests/Settings/Controller/CheckSetupControllerTest.php | 11 |
1 files changed, 10 insertions, 1 deletions
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()); |