summaryrefslogtreecommitdiffstats
path: root/tests/lib/Repair
Commit message (Collapse)AuthorAgeFilesLines
* feat: add setup check for needed mimetype migrationsRobin Appelman2024-06-191-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(sqlite): Remove no longer required autoincrement fixJoas Schilling2023-10-061-90/+0
| | | | | | | | | - I installed current master and exported the schema as SQL - Then I went to this branch, removed the content of the run() method (so made it no-op) - I installed again and exported the schema as SQL - The files are exactly the same, so whatever we tried to fix was fixed since 2015 in doctrine dbal Signed-off-by: Joas Schilling <coding@schilljs.com>
* Clear generated avatar cachesjld31032023-05-151-1/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Adapt tests to config value typingCôme Chilliet2023-04-056-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-2010-10/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move avatar clearing in the backgroundCarl Schwan2022-09-261-3/+7
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update avatars on updateCarl Schwan2022-09-091-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove deprecated at matcher from tests/libCôme Chilliet2022-08-292-7/+6
| | | | | | Only 15 warnings left in there Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix dynamic property creations in test filesCôme Chilliet2022-08-011-1/+0
| | | | | | This fixes warnings in PHP 8.2 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove SCSSCacherJohn Molakvoæ2022-05-131-8/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix more ILogger related problems from testsCôme Chilliet2022-03-241-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* test: adjust expectationArthur Schiwon2021-01-291-3/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add repair job for unencoded calendarsArthur Schiwon2021-01-291-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>