aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Cache
Commit message (Collapse)AuthorAgeFilesLines
* fix(FileAccess): Use one param for rewriting home dirs and excluding ↵feat/getByAncestorInStorageMarcel Klehr2025-07-151-4/+41
| | | | | | non-user files mounts Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess*): fix testsJulien Veyssier2025-07-151-1/+2
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccess*): Change the way home dir root is found, remove the ↵Julien Veyssier2025-07-151-37/+0
| | | | | | excludeTrashbinMounts param of getDistinctMounts Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccess*): Adress review commentsJulien Veyssier2025-07-151-12/+8
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccessTest): Adress review commentsMarcel Klehr2025-07-151-31/+32
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccessTest): Make it work on sharded instanceMarcel Klehr2025-07-151-1/+3
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccessTest): Make sure path_hash is not NULLMarcel Klehr2025-07-151-0/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess#getByAncestorInStorage): Use a subquery to fix testsMarcel Klehr2025-07-151-5/+4
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess): Add testsMarcel Klehr2025-07-151-0/+438
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* chore: run rectorrector-phpunit10Robin Appelman2025-07-019-34/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply new CSFixer rulesFerdinand Thiessen2025-07-0111-0/+11
| | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
* chore: run rector on testsRobin Appelman2025-06-1210-62/+78
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Remove calls to legacy callers in testsfix/cleanup-servercontainerCôme Chilliet2025-05-161-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* test: Fix tests/lib/FilesJoas Schilling2025-05-155-29/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* test: add test for nested cache jail unjailedrootRobin Appelman2025-05-131-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>