Fixing initial load config

This commit is contained in:
Philipp Holzer 2019-07-15 08:58:37 +02:00
parent 6c68b8359d
commit 6801e8b5ab
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
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();
}
}