aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Cache
Commit message (Collapse)AuthorAgeFilesLines
* fix: Metadata field searchartonge/fix/metadata_field_searchLouis Chemineau2025-01-201-2/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: fix mimetype not being updated when changing file extention on object storeupdater-change-mimetype-objectstoreRobin Appelman2024-12-051-0/+35
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Wrap partial cache entry in CacheEntryartonge/fix/getting_cache_entryLouis Chemineau2024-11-211-3/+4
| | | | | | | | Because it is returned here: https://github.com/nextcloud/server/blob/7b7d07c5750583ab3a7b29112af475f5c8891143/lib/private/Files/Cache/Cache.php#L136-L137 And some implementation got stricter: https://github.com/nextcloud/groupfolders/blob/df95bf6ba807da5171de91108879b6d8aa9f3611/lib/Mount/RootEntryCache.php#L23-L28 Signed-off-by: Louis Chemineau <louis@chmn.me>
* test: Fix IStorage return typesprovokateurin2024-09-261-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* test: put parent items into cache in testsRobin Appelman2024-09-183-49/+55
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-1511-92/+92
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(db): switch from settype to castsfeat/switch-from-settype-to-castsAnna Larch2024-09-151-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* chore: Apply php:cs recommendationsLouis Chemineau2024-08-281-7/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat: implement distributing partitioned queries over multiple shardsRobin Appelman2024-08-281-0/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-15/+15
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-191-2/+2
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: make batch propagator work with sharding restrictionsRobin Appelman2024-07-171-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-05-1312-74/+34
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* test: add test for jail watcherRobin Appelman2024-04-081-0/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize query pattern used by storage filterRobin Appelman2024-02-151-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add test for updating etag with unchanged mtime in child folderRobin Appelman2024-01-311-0/+25
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add test for updating etag with unchanged mtimeRobin Appelman2024-01-311-0/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* tests: Add test for CacheEntry gettersFerdinand Thiessen2023-08-161-0/+25
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-272-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* cleanup scannertest a bitRobin Appelman2022-08-161-42/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Files: Extend search to also cover tagsMarcel Klehr2022-05-171-1/+1
| | | | | | fixes #326 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* adjust tests to new fs setupRobin Appelman2022-03-042-3/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Check style updateCarl Schwan2022-01-131-12/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* add test for searching within a "root jail"Robin Appelman2021-07-281-0/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* split of query building bits from searchhelperRobin Appelman2021-06-141-20/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-142-3/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry2021-03-151-0/+70
|\ | | | | do cachejail search filtering in sql
| * fix search in nested jailsRobin Appelman2021-01-261-0/+18
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix cachjail searching for rootRobin Appelman2021-01-261-2/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * do cachejail search filtering in sqlRobin Appelman2021-01-261-0/+37
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
|/ | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use query builder instead of OC_DB in OC\Files\*Joas Schilling2020-11-091-11/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-122-2/+2
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* prevent the root storage from accidentally scanning user foldersRobin Appelman2020-06-111-0/+59
| | | | | | | while this scan *should* never be triggered, it's good to have some failsafe to ensure that the users home contents don't end up getting scanned in the root storage Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-104-27/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-6/+3
| | | | | | | | | | | | | | | 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-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-272-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-252-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-269-136/+136
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17833 from nextcloud/propagator-no-negative-sizesRoeland Jago Douma2019-12-041-0/+11
|\ | | | | dont set folder size to negative values during propagation
| * dont set folder size to negative values during propagationRobin Appelman2019-11-261-0/+11
| | | | | | | | | | | | | | | | | | | | normally this shouldn't be a problem, but cache/storage desync might cause this so this adds some failsafe to ensure we dont corrupt the cache further the minimum value is set to -1 instead of 0 in order to triger a background scan on the folder and figure out the size properly Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Mode to modern phpunitRoeland Jago Douma2019-11-276-47/+47
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make phpunit8 compatibleRoeland Jago Douma2019-11-2711-17/+17
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>