Overwrite the channel

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/31511/head
Joas Schilling 4 years ago
parent a9ba631e4d
commit 21f96308c4
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 24
      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() {

Loading…
Cancel
Save