diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-27 14:47:59 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-27 14:47:59 +0200 |
commit | 3e00554d35be995f52fba4ab49fc6ef1b01fc37b (patch) | |
tree | ce7942f14193e9f6c85401cbdfd4045e2fa9a07c /apps/updatenotification/tests/UpdateCheckerTest.php | |
parent | 6f955defe46b498f014d4e0f105d26324bb7ecd6 (diff) | |
download | nextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.tar.gz nextcloud-server-3e00554d35be995f52fba4ab49fc6ef1b01fc37b.zip |
Respect updater kill switch and fall back to download button
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/tests/UpdateCheckerTest.php')
-rw-r--r-- | apps/updatenotification/tests/UpdateCheckerTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/updatenotification/tests/UpdateCheckerTest.php b/apps/updatenotification/tests/UpdateCheckerTest.php index ce19cc60f2c..c5c3034dd72 100644 --- a/apps/updatenotification/tests/UpdateCheckerTest.php +++ b/apps/updatenotification/tests/UpdateCheckerTest.php @@ -50,11 +50,13 @@ class UpdateCheckerTest extends TestCase { 'versionstring' => 'Nextcloud 123', 'web'=> 'javascript:alert(1)', 'url'=> 'javascript:alert(2)', + 'autoupdater'=> '0', ]); $expected = [ 'updateAvailable' => true, 'updateVersion' => 'Nextcloud 123', + 'updaterEnabled' => false, ]; $this->assertSame($expected, $this->updateChecker->getUpdateState()); } @@ -68,12 +70,15 @@ class UpdateCheckerTest extends TestCase { 'versionstring' => 'Nextcloud 123', 'web'=> 'https://docs.nextcloud.com/myUrl', 'url'=> 'https://downloads.nextcloud.org/server', + 'autoupdater'=> '1', ]); $expected = [ 'updateAvailable' => true, 'updateVersion' => 'Nextcloud 123', + 'updaterEnabled' => true, 'updateLink' => 'https://docs.nextcloud.com/myUrl', + 'downloadLink' => 'https://downloads.nextcloud.org/server', ]; $this->assertSame($expected, $this->updateChecker->getUpdateState()); } |