summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-12-14 10:45:27 +0100
committerJoas Schilling <coding@schilljs.com>2016-12-14 10:45:27 +0100
commit77b6b7b23e68878038bab39839b48f1083f6e8b1 (patch)
tree97dd80b19b6832d3a968909b987dcadd77cea5a0 /tests
parent4f32a8b6ef6e575c71882ce1d1275467845d307f (diff)
downloadnextcloud-server-77b6b7b23e68878038bab39839b48f1083f6e8b1.tar.gz
nextcloud-server-77b6b7b23e68878038bab39839b48f1083f6e8b1.zip
Use the mocked config version
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/App/AppStore/Fetcher/AppFetcherTest.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
index aa0d50cac97..a9cd5a190d0 100644
--- a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
+++ b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
@@ -58,6 +58,12 @@ EOD;
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->config = $this->createMock(IConfig::class);
+ $this->config
+ ->expects($this->atLeastOnce())
+ ->method('getSystemValue')
+ ->with('version')
+ ->willReturn('11.0.0.2');
+
$this->fetcher = new AppFetcher(
$this->appData,
$this->clientService,
@@ -103,11 +109,6 @@ EOD;
->expects($this->once())
->method('getTime')
->willReturn(1234);
- $this->config
- ->expects($this->once())
- ->method('getSystemValue')
- ->with('version')
- ->willReturn('11.0.0.2');
$expected = array (
'data' =>