$this->updateChecker
->expects($this->once())
->method('getUpdateState')
- ->willReturn([
- 'updateVersion' => '8.1.2',
- 'downloadLink' => 'https://downloads.nextcloud.org/server',
- ]);
+ ->willReturn(['updateVersion' => '8.1.2']);
$params = [
'isNewVersionAvailable' => true,
'channels' => $channels,
'newVersionString' => '8.1.2',
'notify_groups' => 'admin',
- 'downloadLink' => 'https://downloads.nextcloud.org/server',
];
$expected = new TemplateResponse('updatenotification', 'admin', $params, '');
'channels' => $channels,
'newVersionString' => '',
'notify_groups' => 'admin',
- 'downloadLink' => '',
];
$expected = new TemplateResponse('updatenotification', 'admin', $params, '');
'updateAvailable' => true,
'updateVersion' => 'Nextcloud 123',
'updateLink' => 'https://docs.nextcloud.com/myUrl',
- 'downloadLink' => 'https://downloads.nextcloud.org/server',
];
$this->assertSame($expected, $this->updateChecker->getUpdateState());
}