Fixing Unittests

This commit is contained in:
Philipp Holzer 2019-03-23 18:44:52 +01:00
parent e930123b75
commit b4ee1a5b26
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
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() {