Merge pull request #6923 from nupplaphil/issue/fix_tests
Fixing Unittests
This commit is contained in:
commit
7406c9328b
3 changed files with 135 additions and 135 deletions
|
@ -37,6 +37,9 @@ class BBCodeTest extends MockedTest
|
||||||
$this->configMock->shouldReceive('get')
|
$this->configMock->shouldReceive('get')
|
||||||
->with('system', 'itemcache_duration')
|
->with('system', 'itemcache_duration')
|
||||||
->andReturn(-1);
|
->andReturn(-1);
|
||||||
|
$this->configMock->shouldReceive('get')
|
||||||
|
->with('system', 'url')
|
||||||
|
->andReturn('friendica.local');
|
||||||
$this->mockL10nT();
|
$this->mockL10nT();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
|
||||||
$this->configCache = new ConfigCache();
|
$this->configCache = new ConfigCache();
|
||||||
$this->configCache->set('system', 'basepath', $this->root->url());
|
$this->configCache->set('system', 'basepath', $this->root->url());
|
||||||
$this->configCache->set('config', 'php_path', trim(shell_exec('which php')));
|
$this->configCache->set('config', 'php_path', trim(shell_exec('which php')));
|
||||||
|
$this->configCache->set('system', 'theme', 'smarty3');
|
||||||
|
|
||||||
$this->mockApp($this->root, null, true);
|
$this->mockApp($this->root, null, true);
|
||||||
|
|
||||||
|
|
|
@ -24,14 +24,10 @@ class ConfigConsoleTest extends ConsoleTest
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$mode = \Mockery::mock(Mode::class);
|
$this->mode
|
||||||
$mode
|
|
||||||
->shouldReceive('has')
|
->shouldReceive('has')
|
||||||
->andReturn(true);
|
->andReturn(true);
|
||||||
|
|
||||||
$this->app
|
|
||||||
->shouldReceive('getMode')
|
|
||||||
->andReturn($mode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function testSetGetKeyValue() {
|
function testSetGetKeyValue() {
|
||||||
|
|
Loading…
Reference in a new issue