aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update tests after ResetTokenBackgroundJob changesThomas Citharel2022-06-151-6/+26
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* show warning in update admin overviewszaimen2022-03-241-1/+127
| | | | | Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Jitter the requests to the appstore and updater server over 3 minutesJoas Schilling2021-07-161-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-046-6/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix update notification testsJoas Schilling2021-04-201-2/+1
| | | | | | | | | | 18) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #1 ('app2', '1.0.1', '1.0.0', '1.0.0', true, array('user1'), array(array('user1'))) Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void" 19) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #2 ('app3', '1.0.1', false, false, true, array('user2', 'user3'), array(array('user2'), array('user3'))) Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void" Signed-off-by: Joas Schilling <coding@schilljs.com>
* Hide updater button when web updater is disabledVincent Petry2021-02-181-9/+15
| | | | | | | Whenever the web updater is disabled, the updater button and its matching token requesting endpoints are disabled. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-126-32/+32
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add tests for update notification controller for non-default updater server URLMorris Jobke2020-04-281-0/+170
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-3/+4
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-2/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-056-9/+28
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-276-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-276-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-3/+3
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update unit testsJoas Schilling2019-07-161-10/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Enterprise update channelMorris Jobke2019-07-101-1/+11
| | | | | | Allows to select the enterprise update channel for instances that have a valid subscription. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused IUserSessionJoas Schilling2019-03-201-4/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust unit testsJoas Schilling2018-11-092-7/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix wrong return value of filtered whats new infoArthur Schiwon2018-08-161-0/+75
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2018-06-291-6/+11
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust backend and gui to update and changelog serverArthur Schiwon2018-06-292-12/+32
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2018-06-292-0/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Adjust updatenotification app settings section/priorityJulius Härtl2018-05-031-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Show EOL warning in the update sectionJoas Schilling2018-03-202-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testsJoas Schilling2018-02-231-1/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate the app to Vue.jsJoas Schilling2018-02-221-15/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use correct update serverMorris Jobke2018-02-011-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make Update notficiations strict and fix all inspectionsJoas Schilling2018-01-186-31/+32
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Split controller and settingsJoas Schilling2018-01-162-130/+127
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Automatic DI for Controllers also worksJoas Schilling2018-01-151-28/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve ResetTokenBackgroundJob and unit testJoas Schilling2018-01-151-10/+9
| | | | | | | | * Automatic DI is implemented since 11 * Correctly type hint parameters * Optimise the tests Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make isUpdateAvailable non-staticMorris Jobke2017-11-251-1/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-063-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve update notification layout and show non-default update serverMorris Jobke2017-08-021-0/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show correct status in update notificationMorris Jobke2017-08-021-0/+2
| | | | | | | | | Sometimes it could be the case that after a channel change the last updated timestamp is reset, but the check for updates is not yet completed. In this case the update notification showed "You are up to date" and the date was "1970-01-01 00:00:00". With this fix the state is properly shown. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix unit testJoas Schilling2017-03-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Create a notification when the update server couldn't be reached for some daysJoas Schilling2017-03-262-38/+75
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix update notification testsJoas Schilling2017-01-092-37/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix testsJoas Schilling2016-12-021-4/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use new URL schemaJoas Schilling2016-10-041-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use the readable version for notificationsJoas Schilling2016-10-041-10/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* UpdateState is empty if no update is availableLukas Reschke2016-09-281-1/+1
| | | | | | This leads to log messages such as "Undefined index: updaterEnabled at /media/psf/nextcloud/apps/updatenotification/lib/Controller/AdminController.php#116". Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Respect updater kill switch and fall back to download buttonJoas Schilling2016-09-272-2/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "Fix tests"Morris Jobke2016-09-262-7/+1
| | | | | | This reverts commit 27a3c68d840f2a8d8d212ba4086df10e0969c5e3. Signed-off-by: Morris Jobke <hey@morrisjobke.de>