aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Repair
Commit message (Collapse)AuthorAgeFilesLines
* refactor: convert sanitize account properties repair step to background jobfix/account-property-validationFerdinand Thiessen2025-02-242-10/+55
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Optimize repair step performanceFerdinand Thiessen2025-02-241-1/+26
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: validate account properties as a repair stepFerdinand Thiessen2025-02-241-0/+89
| | | | | | | | Replace `ValidatePhoneNumber` from Nextcloud 21 with a new repair step, `ValidateAccountProperties` which validates and sanitizes all account properties. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Cleanup and prepare `\OC\Repair\RepairMimeTypes` tests for PHPUnit 10chore/prepare-oc_repair-unit10Ferdinand Thiessen2024-09-1911-144/+598
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: put parent items into cache in testsRobin Appelman2024-09-181-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(tests): Adapt tests to changes in RepairMimeTypesCôme Chilliet2024-09-171-3/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-158-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix: implement sharding compatible cleanup for various bitsRobin Appelman2024-08-281-11/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: mark share test cleanup as running across all shardsRobin Appelman2024-08-281-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-253-8/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: delete repair step for 8y old oc_mounts issueRobin Appelman2024-08-021-114/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-191-2/+1
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(db): Use `createSchemaManager()` method as `getSchemaManager()` is ↵Joas Schilling2024-07-191-1/+1
| | | | | | deprecated Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat: add setup check for needed mimetype migrationsRobin Appelman2024-06-181-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-05-139-97/+23
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* 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>