aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Cache
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * 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>
* fix folder deleteRobin Appelman2019-11-131-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont create empty filecache extended rowsRobin Appelman2019-11-131-1/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store filecache extension fieldsRobin Appelman2019-11-131-0/+61
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove deprecated searchByTagRoeland Jago Douma2019-07-261-70/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Avoid calculating folder size for parent that needs scan.Ari Selseng2019-03-061-0/+38
| | | | Signed-off-by: Ari Selseng <ari@selseng.net>
* Add dispatcher events to User and Group objectsJoas Schilling2019-03-011-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add test for non existing file by idRobin Appelman2018-11-191-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Moves the logo files to logoMichael Weimann2018-10-023-7/+7
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Fix risky tests without assertionsJoas Schilling2018-01-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Support arbitrary number of arguments for d:or and d:and in search queriesRobin Appelman2018-01-161-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix CacheTestRoeland Jago Douma2017-08-091-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Can not insert auto increment on oracleJoas Schilling2017-08-021-18/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add tests for renaming paths with multibyte utf8 charactersRobin Appelman2017-07-221-36/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix moving folders out of a cache jailRobin Appelman2017-06-151-0/+50
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow searching for favoritesRobin Appelman2017-03-081-6/+64
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add tests for filesearchbackendRobin Appelman2017-03-011-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add tests for searchQueryRobin Appelman2017-03-011-15/+59
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Implement webdav SEARCHRobin Appelman2017-03-011-0/+173
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add icewind/searchdavRobin Appelman2017-02-281-0/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>