Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-10 18:16:30 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-10 18:16:30 +0300
commit21f96308c4966b468eba4e75dabe49977d52be3f (patch)
tree2d42016b2d4afe4b4cfd5094615aa3e26dd0e247 /tests
parenta9ba631e4d50ef1d06d67b8b501295d86ff6f7d9 (diff)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/App/AppStore/Fetcher/AppFetcherTest.php24
1 files changed, 15 insertions, 9 deletions
diff --git a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
index 14a7569a64e..4746c296ab4 100644
--- a/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
+++ b/tests/lib/App/AppStore/Fetcher/AppFetcherTest.php
@@ -1854,15 +1854,21 @@ EJL3BaQAQaASSsvFrcozYxrQG4VzEg==
$this->logger = $this->createMock(LoggerInterface::class);
$this->registry = $this->createMock(IRegistry::class);
- $this->fetcher = new AppFetcher(
- $factory,
- $this->clientService,
- $this->timeFactory,
- $this->config,
- $this->compareVersion,
- $this->logger,
- $this->registry
- );
+ $this->fetcher = $this->getMockBuilder(AppFetcher::class)
+ ->setMethods(['getChannel'])
+ ->setConstructorArgs([
+ $factory,
+ $this->clientService,
+ $this->timeFactory,
+ $this->config,
+ $this->compareVersion,
+ $this->logger,
+ $this->registry,
+ ])
+ ->getMock();
+
+ $this->fetcher->method('getChannel')
+ ->willReturn('stable');
}
public function testGetWithFilter() {