summaryrefslogtreecommitdiffstats
path: root/tests/lib/Repair
Commit message (Collapse)AuthorAgeFilesLines
* test: adjust expectationArthur Schiwon2021-02-021-3/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add repair job for unencoded calendarsArthur Schiwon2021-02-021-0/+197
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-083-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix repair mimetype step to not leave stray cursorsJoas Schilling2020-11-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-127-11/+11
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-242-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | 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 exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-1/+3
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-279-15/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-224-4/+4
| | | | | | | | | | | * 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>
* Remove one time repair steps that have already run when updating to 17Morris Jobke2019-07-083-544/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Implement guest avatar endpointMichael Weimann2019-02-071-1/+1
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Log and continue on Dav reader failureJohn Molakvoæ (skjnldsv)2018-12-051-2/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-082-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Clear avatar cache with frontend repairJohn Molakvoæ (skjnldsv)2018-11-081-0/+82
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge branch 'addressbook-uid-check-migration' of ↵John Molakvoæ (skjnldsv)2018-11-011-1/+1
|\ | | | | | | | | | | https://github.com/nextcloud/server into addressbook-uid-check-migration Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * TestsJohn Molakvoæ (skjnldsv)2018-11-011-0/+121
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix phpunitJohn Molakvoæ (skjnldsv)2018-11-011-20/+20
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | TestsJohn Molakvoæ (skjnldsv)2018-10-301-0/+121
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-031-16/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add tests and class mappingJulius Härtl2018-02-031-0/+94
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove old repair steps that aren't executed anymoreMorris Jobke2018-01-224-701/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* check if the user still exists before we try to cleanup the previewsBjoern Schiessle2017-11-141-1/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use ::class in test mocksMorris Jobke2017-10-243-3/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont run invalid path repair step when upgrading from 11.0.5.2 and laterRobin Appelman2017-10-031-0/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix RepairMimeTypeTestRoeland Jago Douma2017-08-091-4/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix last failures with oracleJoas Schilling2017-08-021-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also repair storage id's when repairing invalid entriesRobin Appelman2017-07-211-0/+34
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chunk getting invalid paths and reuse queriesRobin Appelman2017-07-131-0/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust to moved repair stepRobin Appelman2017-06-291-2/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add repair step for invalid pathsRobin Appelman2017-06-211-0/+111
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add tests for repairstepLukas Reschke2017-04-261-0/+144
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add test code for new image mime typesStefan Weil2017-04-251-0/+21
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Adjust tests as wellMorris Jobke2017-03-211-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* [CI] Can we get some faster phpunit execution? (#27113)Thomas Müller2017-03-201-4/+9
| | | | | | | | * Don't backup globals and static attributes * Unset global variable to remove impact on followup tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make the test usefulJoas Schilling2017-03-031-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Execute UpdateLanguageCode only onceMorris Jobke2017-03-021-1/+25
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix table name and add a test for more than 1 entriesJoas Schilling2017-03-021-20/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change language code for languages with only one translationMorris Jobke2017-03-011-0/+147
| | | | | | | | | | | | * then the language is not that specific and get also matched for fi * fallback from fi_FI to fi is supported - the other way around not * contains repair script * contains tests for repair script * fixes #869 Order results to make postgres happy Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* cleanup old and not needed repair steps to speed up the updateMorris Jobke2017-02-2211-1652/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* remote now unneeded AvatarPermissions repair stepRobin Appelman2017-01-261-189/+0
| | | | | | Avatars are now stored in appdata Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add repair step to fix file share permissionsVincent Petry2017-01-051-0/+67
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Remove obsolete RepairLegacyStorages repair stepVincent Petry2016-12-191-321/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add a unit testJoas Schilling2016-12-131-0/+132
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add test if repair step is already doneRoeland Jago Douma2016-11-191-1/+43
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>