Merge pull request #6923 from nupplaphil/issue/fix_tests

Fixing Unittests
This commit is contained in:
Hypolite Petovan 2019-03-23 14:27:47 -04:00 committed by GitHub
commit 7406c9328b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 135 additions and 135 deletions

View File

@ -37,6 +37,9 @@ class BBCodeTest extends MockedTest
$this->configMock->shouldReceive('get')
->with('system', 'itemcache_duration')
->andReturn(-1);
$this->configMock->shouldReceive('get')
->with('system', 'url')
->andReturn('friendica.local');
$this->mockL10nT();
}

View File

@ -54,6 +54,7 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
$this->configCache = new ConfigCache();
$this->configCache->set('system', 'basepath', $this->root->url());
$this->configCache->set('config', 'php_path', trim(shell_exec('which php')));
$this->configCache->set('system', 'theme', 'smarty3');
$this->mockApp($this->root, null, true);

View File

@ -24,14 +24,10 @@ class ConfigConsoleTest extends ConsoleTest
]
]);
$mode = \Mockery::mock(Mode::class);
$mode
$this->mode
->shouldReceive('has')
->andReturn(true);
$this->app
->shouldReceive('getMode')
->andReturn($mode);
}
function testSetGetKeyValue() {