diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-18 12:25:52 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-22 10:17:41 +0100 |
commit | b12b391d7c4875fde4851c748dfb610a1b32d2e4 (patch) | |
tree | c8c81ce742dc2582f1b9e99b62dc8da6fe689bfa /apps/updatenotification/tests | |
parent | 52f8d75d1af69acfb8bce3a618e89f99cdcde930 (diff) | |
download | nextcloud-server-b12b391d7c4875fde4851c748dfb610a1b32d2e4.tar.gz nextcloud-server-b12b391d7c4875fde4851c748dfb610a1b32d2e4.zip |
Migrate the app to Vue.js
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r-- | apps/updatenotification/tests/Settings/AdminTest.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/apps/updatenotification/tests/Settings/AdminTest.php b/apps/updatenotification/tests/Settings/AdminTest.php index 02f505517e1..c5e969dbe14 100644 --- a/apps/updatenotification/tests/Settings/AdminTest.php +++ b/apps/updatenotification/tests/Settings/AdminTest.php @@ -65,10 +65,8 @@ class AdminTest extends TestCase { 'production', ]; $currentChannel = Util::getChannel(); - - // Remove the currently used channel from the channels list - if(($key = array_search($currentChannel, $channels, true)) !== false) { - unset($channels[$key]); + if ($currentChannel === 'git') { + $channels[] = 'git'; } $this->config @@ -99,17 +97,19 @@ class AdminTest extends TestCase { ]); $params = [ - 'isNewVersionAvailable' => true, - 'isUpdateChecked' => true, - 'lastChecked' => 'LastCheckedReturnValue', - 'currentChannel' => Util::getChannel(), - 'channels' => $channels, - 'newVersionString' => '8.1.2', - 'downloadLink' => 'https://downloads.nextcloud.org/server', - 'updaterEnabled' => true, - 'isDefaultUpdateServerURL' => true, - 'updateServerURL' => 'https://updates.nextcloud.com/updater_server/', - 'notify_groups' => 'admin', + 'json' => json_encode([ + 'isNewVersionAvailable' => true, + 'isUpdateChecked' => true, + 'lastChecked' => 'LastCheckedReturnValue', + 'currentChannel' => Util::getChannel(), + 'channels' => $channels, + 'newVersionString' => '8.1.2', + 'downloadLink' => 'https://downloads.nextcloud.org/server', + 'updaterEnabled' => true, + 'isDefaultUpdateServerURL' => true, + 'updateServerURL' => 'https://updates.nextcloud.com/updater_server/', + 'notify_groups' => 'admin', + ]), ]; $expected = new TemplateResponse('updatenotification', 'admin', $params, ''); |