Improve & fixing Tests
This commit is contained in:
@@ -252,6 +252,20 @@ abstract class ConfigurationTest extends MockedTest
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the configuration load without result
|
||||
*/
|
||||
public function testLoadWrong()
|
||||
{
|
||||
$this->configModel->shouldReceive('isConnected')->andReturn(true)->once();
|
||||
$this->configModel->shouldReceive('load')->withAnyArgs()->andReturn([])->once();
|
||||
|
||||
$this->testedConfig = $this->getInstance();
|
||||
$this->assertInstanceOf(ConfigCache::class, $this->testedConfig->getCache());
|
||||
|
||||
$this->assertEmpty($this->testedConfig->getCache()->getAll());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the configuration get() and set() methods without adapter
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user