mirror of
https://github.com/friendica/friendica
synced 2025-04-30 02:24:23 +02:00
Improve & fixing Tests
This commit is contained in:
parent
486f139342
commit
c293eadb78
7 changed files with 76 additions and 63 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue