From ee20741526eccc1a02ee48fea6d917d17c1cfe58 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 13 Dec 2017 12:53:12 +0100 Subject: Add tests Signed-off-by: Roeland Jago Douma --- tests/Settings/Controller/CheckSetupControllerTest.php | 6 +++++- 1 file changed, 5 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 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()); -- cgit v1.2.3