mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Overwrite the channel
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a9ba631e4d
commit
21f96308c4
1 changed files with 15 additions and 9 deletions
|
|
@ -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…
Reference in a new issue