aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Settings/Controller/CheckSetupControllerTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-12-13 18:25:05 +0100
committerGitHub <noreply@github.com>2017-12-13 18:25:05 +0100
commit784d256103d5777db817aded96afcbd3a2362a10 (patch)
treee0cc8702b99f840cd8cb4a3d6ef35519d744c4cf /tests/Settings/Controller/CheckSetupControllerTest.php
parent66391d65a68d89f5351c1be7810cd4abd0e82989 (diff)
parentee20741526eccc1a02ee48fea6d917d17c1cfe58 (diff)
downloadnextcloud-server-784d256103d5777db817aded96afcbd3a2362a10.tar.gz
nextcloud-server-784d256103d5777db817aded96afcbd3a2362a10.zip
Merge pull request #7480 from nextcloud/fix_7454
Check for FreeType functions required for avatars
Diffstat (limited to 'tests/Settings/Controller/CheckSetupControllerTest.php')
-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());