Fix test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
e79424932a
commit
ae7c1504a9
|
@ -72,26 +72,16 @@ EOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetWithFilter() {
|
public function testGetWithFilter() {
|
||||||
$this->config
|
$this->config->method('getSystemValue')
|
||||||
->expects($this->at(0))
|
->willReturnCallback(function($key, $default) {
|
||||||
->method('getSystemValue')
|
if ($key === 'appstoreenabled') {
|
||||||
->with('appstoreenabled', true)
|
return true;
|
||||||
->willReturn(true);
|
} else if ($key === 'version') {
|
||||||
$this->config
|
return '11.0.0.2';
|
||||||
->expects($this->at(1))
|
} else {
|
||||||
->method('getSystemValue')
|
return $default;
|
||||||
->with('appstoreenabled', true)
|
}
|
||||||
->willReturn(true);
|
});
|
||||||
$this->config
|
|
||||||
->expects($this->at(2))
|
|
||||||
->method('getSystemValue')
|
|
||||||
->with('version')
|
|
||||||
->willReturn('11.0.0.2');
|
|
||||||
$this->config
|
|
||||||
->expects($this->at(3))
|
|
||||||
->method('getSystemValue')
|
|
||||||
->with('version')
|
|
||||||
->willReturn('11.0.0.2');
|
|
||||||
|
|
||||||
$file = $this->createMock(ISimpleFile::class);
|
$file = $this->createMock(ISimpleFile::class);
|
||||||
$folder = $this->createMock(ISimpleFolder::class);
|
$folder = $this->createMock(ISimpleFolder::class);
|
||||||
|
|
Loading…
Reference in New Issue