diff options
author | Joas Schilling <coding@schilljs.com> | 2016-12-14 10:45:27 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-12-14 10:45:27 +0100 |
commit | 77b6b7b23e68878038bab39839b48f1083f6e8b1 (patch) | |
tree | 97dd80b19b6832d3a968909b987dcadd77cea5a0 /tests | |
parent | 4f32a8b6ef6e575c71882ce1d1275467845d307f (diff) | |
download | nextcloud-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.php | 11 |
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' => |