Hopefully this fixes the tests again

This commit is contained in:
Michael 2018-12-22 22:04:47 +00:00
parent 439afc89b6
commit 732308ce6d
2 changed files with 18 additions and 7 deletions

View file

@ -177,6 +177,17 @@ class InstallerTest extends MockedTest
true,
$install->getChecks());
$this->mockFunctionL10TCalls();
$this->setFunctions(['json_encode' => false]);
$install = new Installer();
$this->assertFalse($install->checkFunctions());
$this->assertCheckExist(9,
'JSON PHP module',
'Error: JSON PHP module required but not installed.',
false,
true,
$install->getChecks());
$this->mockFunctionL10TCalls();
$this->setFunctions([
'curl_init' => true,