diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-06-01 10:29:46 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-06-29 09:08:33 +0200 |
commit | 1e0761c6b8f035e73f89afa66dcdcf032e5f917d (patch) | |
tree | d28c2d5a419c68a9f94318eaa7258ef35f15613f /apps/updatenotification/tests | |
parent | bafb6b3c29995cdac283ea68c419213766d6a1d6 (diff) | |
download | nextcloud-server-1e0761c6b8f035e73f89afa66dcdcf032e5f917d.tar.gz nextcloud-server-1e0761c6b8f035e73f89afa66dcdcf032e5f917d.zip |
adjust tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r-- | apps/updatenotification/tests/Settings/AdminTest.php | 4 | ||||
-rw-r--r-- | apps/updatenotification/tests/UpdateCheckerTest.php | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/apps/updatenotification/tests/Settings/AdminTest.php b/apps/updatenotification/tests/Settings/AdminTest.php index d5915a9c102..3e069907507 100644 --- a/apps/updatenotification/tests/Settings/AdminTest.php +++ b/apps/updatenotification/tests/Settings/AdminTest.php @@ -99,6 +99,8 @@ class AdminTest extends TestCase { 'updateAvailable' => true, 'updateVersion' => '8.1.2', 'downloadLink' => 'https://downloads.nextcloud.org/server', + 'changelog' => 'https://nextcloud.com/changelog/#8.1.2', + 'whatsNew' => ['Autoshare to mother-in-law', 'Faster backend', 'Sparkling frontend'], 'updaterEnabled' => true, 'versionIsEol' => false, ]); @@ -124,6 +126,8 @@ class AdminTest extends TestCase { 'channels' => $channels, 'newVersionString' => '8.1.2', 'downloadLink' => 'https://downloads.nextcloud.org/server', + 'changelogURL' => 'https://nextcloud.com/changelog/#8.1.2', + 'whatsNew' => ['Autoshare to mother-in-law', 'Faster backend', 'Sparkling frontend'], 'updaterEnabled' => true, 'versionIsEol' => false, 'isDefaultUpdateServerURL' => true, diff --git a/apps/updatenotification/tests/UpdateCheckerTest.php b/apps/updatenotification/tests/UpdateCheckerTest.php index 6f5edf0c78c..0a82f950b9a 100644 --- a/apps/updatenotification/tests/UpdateCheckerTest.php +++ b/apps/updatenotification/tests/UpdateCheckerTest.php @@ -51,6 +51,8 @@ class UpdateCheckerTest extends TestCase { 'versionstring' => 'Nextcloud 123', 'web'=> 'javascript:alert(1)', 'url'=> 'javascript:alert(2)', + 'changelog' => 'javascript:alert(3)', + 'whatsNew' => 'javascript:alert(4)', 'autoupdater'=> '0', 'eol'=> '1', ]); @@ -73,6 +75,8 @@ class UpdateCheckerTest extends TestCase { 'versionstring' => 'Nextcloud 123', 'web'=> 'https://docs.nextcloud.com/myUrl', 'url'=> 'https://downloads.nextcloud.org/server', + 'changelog' => 'https://nextcloud.com/changelog/#123.0.0', + 'whatsNew' => ['Brews coffee', 'Makes appointments', 'Orchestrates Terminators'], 'autoupdater'=> '1', 'eol'=> '0', ]); @@ -84,6 +88,8 @@ class UpdateCheckerTest extends TestCase { 'versionIsEol' => false, 'updateLink' => 'https://docs.nextcloud.com/myUrl', 'downloadLink' => 'https://downloads.nextcloud.org/server', + 'changelog' => 'https://nextcloud.com/changelog/#123.0.0', + 'whatsNew' => ['Brews coffee', 'Makes appointments', 'Orchestrates Terminators'], ]; $this->assertSame($expected, $this->updateChecker->getUpdateState()); } |