aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Updater
Commit message (Collapse)AuthorAgeFilesLines
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-11/+12
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-153-17/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-23/+23
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(migration-attributes): testsMaxence Lange2024-07-291-0/+209
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-132-37/+5
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(updatenotification): spread the use of new appconfigMaxence Lange2024-03-131-100/+101
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Print log message when version could not be got from updater serverDaniel Calviño Sánchez2023-09-061-0/+5
| | | | | | | | | This could help to diagnose why the updater server could not be reached, as well as other subtler issues like requests taking too long if the updater server was tried to be connected to as a "side effect" (for example, when the "updatenotification" app boots). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add instance category while checking new updatesBenjamin Gaussorgues2023-07-181-7/+20
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-201-6/+6
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Add type hints for mappersjld31032023-04-071-6/+6
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | Adapt tests to config value typingCôme Chilliet2023-04-051-5/+5
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix types for reading and writing config valuesjld31032023-04-051-10/+10
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Remove deprecated at matcher in Updater/VersionCheckTest.phpCôme Chilliet2022-08-291-107/+111
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-122-5/+5
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-4/+8
| | | | | | | | | | | | | | | 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-22/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add message for DoesNotExistExceptionDaniel Kesselberg2020-03-021-0/+17
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* when we receive intentional empty whats new info, do not try to show itArthur Schiwon2020-02-131-0/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Mode to modern phpunitRoeland Jago Douma2019-11-272-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-272-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not check for updates if we have no internetRoeland Jago Douma2019-11-201-24/+64
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Backend work to provide NC whats New info to usersArthur Schiwon2018-07-051-2/+37
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2018-06-291-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust backend and gui to update and changelog serverArthur Schiwon2018-06-292-6/+348
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2018-06-291-0/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Show EOL warning in the update sectionJoas Schilling2018-03-201-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cache final result of update checkMorris Jobke2017-12-181-1/+52
| | | | | | | | If the parsed data is not a valid response we should not cache it and only cache the preprocessed result set. Fixes #7442 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-2/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the URLs in tests to use example.orgMorris Jobke2017-08-011-6/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Document updater channel & check for correct PHP version in updaterMorris Jobke2016-12-061-1/+1
| | | | | | * see https://github.com/nextcloud/updater/issues/53 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the same URL everywhereJoas Schilling2016-09-271-8/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the autoupdater value from the serverJoas Schilling2016-09-271-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change updater URLJoas Schilling2016-09-081-12/+12
|
* Fix getMock UpdaterRoeland Jago Douma2016-09-071-2/+4
|
* fix testsMorris Jobke2016-09-071-12/+12
|
* Deprecate getEditionString()Joas Schilling2016-09-061-1/+1
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+261
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader