diff options
author | Joas Schilling <coding@schilljs.com> | 2018-03-14 14:21:49 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-03-20 15:52:30 +0100 |
commit | ec1e0397901f12cd1c9dc99eab60d6464cac5a0b (patch) | |
tree | ffc03af8a2d89d3ffb610c104f401f86a1f4c543 /apps/updatenotification/tests | |
parent | 64feb3f3912f0976bb028f5d56a6434c55085925 (diff) | |
download | nextcloud-server-ec1e0397901f12cd1c9dc99eab60d6464cac5a0b.tar.gz nextcloud-server-ec1e0397901f12cd1c9dc99eab60d6464cac5a0b.zip |
Show EOL warning in the update section
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r-- | apps/updatenotification/tests/Settings/AdminTest.php | 2 | ||||
-rw-r--r-- | apps/updatenotification/tests/UpdateCheckerTest.php | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/updatenotification/tests/Settings/AdminTest.php b/apps/updatenotification/tests/Settings/AdminTest.php index 440e26cfd33..4e2ac3a53d9 100644 --- a/apps/updatenotification/tests/Settings/AdminTest.php +++ b/apps/updatenotification/tests/Settings/AdminTest.php @@ -100,6 +100,7 @@ class AdminTest extends TestCase { 'updateVersion' => '8.1.2', 'downloadLink' => 'https://downloads.nextcloud.org/server', 'updaterEnabled' => true, + 'versionIsEol' => false, ]); $group = $this->createMock(IGroup::class); @@ -124,6 +125,7 @@ class AdminTest extends TestCase { 'newVersionString' => '8.1.2', 'downloadLink' => 'https://downloads.nextcloud.org/server', 'updaterEnabled' => true, + 'versionIsEol' => false, 'isDefaultUpdateServerURL' => true, 'updateServerURL' => 'https://updates.nextcloud.com/updater_server/', 'notifyGroups' => [ diff --git a/apps/updatenotification/tests/UpdateCheckerTest.php b/apps/updatenotification/tests/UpdateCheckerTest.php index 5502e1ce8ac..6f5edf0c78c 100644 --- a/apps/updatenotification/tests/UpdateCheckerTest.php +++ b/apps/updatenotification/tests/UpdateCheckerTest.php @@ -52,12 +52,14 @@ class UpdateCheckerTest extends TestCase { 'web'=> 'javascript:alert(1)', 'url'=> 'javascript:alert(2)', 'autoupdater'=> '0', + 'eol'=> '1', ]); $expected = [ 'updateAvailable' => true, 'updateVersion' => 'Nextcloud 123', 'updaterEnabled' => false, + 'versionIsEol' => true, ]; $this->assertSame($expected, $this->updateChecker->getUpdateState()); } @@ -72,12 +74,14 @@ class UpdateCheckerTest extends TestCase { 'web'=> 'https://docs.nextcloud.com/myUrl', 'url'=> 'https://downloads.nextcloud.org/server', 'autoupdater'=> '1', + 'eol'=> '0', ]); $expected = [ 'updateAvailable' => true, 'updateVersion' => 'Nextcloud 123', 'updaterEnabled' => true, + 'versionIsEol' => false, 'updateLink' => 'https://docs.nextcloud.com/myUrl', 'downloadLink' => 'https://downloads.nextcloud.org/server', ]; |