->willReturn([
'updateAvailable' => true,
'updateVersion' => '8.1.2',
+ 'updateVersionString' => 'Nextcloud 8.1.2',
'downloadLink' => 'https://downloads.nextcloud.org/server',
'changes' => [],
'updaterEnabled' => true,
'lastChecked' => 'LastCheckedReturnValue',
'currentChannel' => Util::getChannel(),
'channels' => $channels,
- 'newVersionString' => '8.1.2',
+ 'newVersion' => '8.1.2',
+ 'newVersionString' => 'Nextcloud 8.1.2',
'downloadLink' => 'https://downloads.nextcloud.org/server',
'changes' => [],
'updaterEnabled' => true,
->expects($this->once())
->method('check')
->willReturn([
- 'version' => 123,
- 'versionstring' => 'Nextcloud 123',
+ 'version' => '1.2.3',
+ 'versionstring' => 'Nextcloud 1.2.3',
'web'=> 'javascript:alert(1)',
'url'=> 'javascript:alert(2)',
'changes' => 'javascript:alert(3)',
$expected = [
'updateAvailable' => true,
- 'updateVersion' => 'Nextcloud 123',
+ 'updateVersion' => '1.2.3',
+ 'updateVersionString' => 'Nextcloud 1.2.3',
'updaterEnabled' => false,
'versionIsEol' => true,
];
->expects($this->once())
->method('check')
->willReturn([
- 'version' => '123',
- 'versionstring' => 'Nextcloud 123',
+ 'version' => '1.2.3',
+ 'versionstring' => 'Nextcloud 1.2.3',
'web'=> 'https://docs.nextcloud.com/myUrl',
'url'=> 'https://downloads.nextcloud.org/server',
'changes' => 'https://updates.nextcloud.com/changelog_server/?version=123.0.0',
$expected = [
'updateAvailable' => true,
- 'updateVersion' => 'Nextcloud 123',
+ 'updateVersion' => '1.2.3',
+ 'updateVersionString' => 'Nextcloud 1.2.3',
'updaterEnabled' => true,
'versionIsEol' => false,
'updateLink' => 'https://docs.nextcloud.com/myUrl',