summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-12-13 12:53:12 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-12-13 17:22:58 +0100
commitee20741526eccc1a02ee48fea6d917d17c1cfe58 (patch)
tree1420bd413e5e253365b5285da4c1da3d825dfc1a /tests
parent7618473a443aaa42d06391a134525d51a6912f39 (diff)
downloadnextcloud-server-ee20741526eccc1a02ee48fea6d917d17c1cfe58.tar.gz
nextcloud-server-ee20741526eccc1a02ee48fea6d917d17c1cfe58.zip
Add tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/Settings/Controller/CheckSetupControllerTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php
index f0e203e714b..3f47819bcbd 100644
--- a/tests/Settings/Controller/CheckSetupControllerTest.php
+++ b/tests/Settings/Controller/CheckSetupControllerTest.php
@@ -96,7 +96,7 @@ class CheckSetupControllerTest extends TestCase {
$this->checker,
$this->logger
])
- ->setMethods(['getCurlVersion', 'isPhpOutdated', 'isOpcacheProperlySetup'])->getMock();
+ ->setMethods(['getCurlVersion', 'isPhpOutdated', 'isOpcacheProperlySetup', 'hasFreeTypeSupport'])->getMock();
}
public function testIsInternetConnectionWorkingDisabledViaConfig() {
@@ -321,6 +321,9 @@ class CheckSetupControllerTest extends TestCase {
->method('linkToDocs')
->with('admin-php-opcache')
->willReturn('http://docs.example.org/server/go.php?to=admin-php-opcache');
+ $this->checkSetupController
+ ->method('hasFreeTypeSupport')
+ ->willReturn(false);
$expected = new DataResponse(
[
@@ -342,6 +345,7 @@ class CheckSetupControllerTest extends TestCase {
'isOpcacheProperlySetup' => false,
'phpOpcacheDocumentation' => 'http://docs.example.org/server/go.php?to=admin-php-opcache',
'isSettimelimitAvailable' => true,
+ 'hasFreeTypeSupport' => false,
]
);
$this->assertEquals($expected, $this->checkSetupController->check());