mirror of
https://github.com/friendica/friendica
synced 2025-04-30 02:24:23 +02:00
Fixing initial load config
This commit is contained in:
parent
6c68b8359d
commit
6801e8b5ab
2 changed files with 25 additions and 20 deletions
|
@ -114,7 +114,13 @@ class JitConfigurationTest extends ConfigurationTest
|
|||
->andReturn(['config' => []])
|
||||
->once();
|
||||
|
||||
// mocking one get
|
||||
// mocking one get without result
|
||||
$this->configModel->shouldReceive('get')
|
||||
->with('test', 'it')
|
||||
->andReturn(null)
|
||||
->once();
|
||||
|
||||
// mocking the data get
|
||||
$this->configModel->shouldReceive('get')
|
||||
->with('test', 'it')
|
||||
->andReturn($data)
|
||||
|
@ -162,6 +168,12 @@ class JitConfigurationTest extends ConfigurationTest
|
|||
->andReturn(['config' => []])
|
||||
->once();
|
||||
|
||||
// mocking one get without result
|
||||
$this->configModel->shouldReceive('get')
|
||||
->with('test', 'it')
|
||||
->andReturn(null)
|
||||
->once();
|
||||
|
||||
parent::testDeleteWithDB();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue