Fixing Unittests
This commit is contained in:
parent
e930123b75
commit
b4ee1a5b26
3 changed files with 135 additions and 135 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue