Fixing initial load config

This commit is contained in:
Philipp Holzer
2019-07-15 08:58:37 +02:00
parent 6c68b8359d
commit 6801e8b5ab
2 changed files with 25 additions and 20 deletions

View File

@@ -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();
}
}