aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Node/FolderTest.php
Commit message (Collapse)AuthorAgeFilesLines
* test: put parent items into cache in testsRobin Appelman2024-09-181-1/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(tests): Fix Folder testsCôme Chilliet2024-09-171-3/+22
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-161-9/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-23/+23
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix: `OCP\Files\Node\Folder::search` was not setting the ownerFerdinand Thiessen2024-07-111-3/+11
| | | | | | The owner was not set on the file info causing e.g. webdav searches to never return the known owner. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-4/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* perf: cache path by id to speedup getting nodes by idRobin Appelman2024-03-041-23/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: ugly type jugglingArthur Schiwon2023-06-211-3/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* tests: Adapt node related unit tests mocks to required root viewJulius Härtl2023-04-171-98/+33
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Use proper path when creating node instancesJulius Härtl2023-04-171-0/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Filter out old files when trying to get recent filesCarl Schwan2022-09-051-4/+4
| | | | | | | Only do so when asking for less than 100 files and having an offset equal to 0. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Only pass parent if paths matchJulius Härtl2022-08-241-3/+33
| | | | | | | As the user folder might be initialized by the root from two levels down the hierarchy, passing this as a parent only works if the path matches Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Avoid extra query for the parent node if we can pass it alongJulius Härtl2022-08-241-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* allow reusing known folder info when getting directory contentsRobin Appelman2022-04-061-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont needlessly resolve path when getting internalPath/storage from NodeRobin Appelman2022-04-041-22/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust tests to new fs setupRobin Appelman2022-03-041-22/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-231-0/+4
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix FolderTest calls to Mountpoint constructor with wrong typeCôme Chilliet2021-11-231-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix Folder->getById() when a single storage is mounted multiple timesRobin Appelman2021-07-281-68/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update tests and fix some edge cases around new searchRobin Appelman2021-06-141-77/+69
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust testsRobin Appelman2021-04-211-0/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle ordering in folder searchRobin Appelman2021-03-191-20/+34
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* folder filtering in sqlRobin Appelman2021-03-191-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* cleanup fileinfo creationRobin Appelman2021-03-191-60/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle limit and offset in folder file searchRobin Appelman2021-03-181-41/+157
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only require user to be set in a query that handles tagsRobin Appelman2021-03-181-16/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-30/+30
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-29/+29
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-85/+85
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #16502 from nextcloud/bugfix/16474Morris Jobke2019-07-291-7/+14
|\ | | | | Check the if we can actually access the storage cache for recent files
| * Check the if we can actually access the storage cache for recent filesJulius Härtl2019-07-241-7/+14
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Remove deprecated searchByTagRoeland Jago Douma2019-07-261-51/+0
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* adjust testsRobin Appelman2019-02-071-10/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix folder path containing leading slash when getting mount root by idRobin Appelman2018-11-281-0/+48
| | | | | | | | This fixes collabora on public link shared groupfolders Fixes https://github.com/nextcloud/groupfolders/issues/225 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix testRoeland Jago Douma2018-03-221-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Refactor files node API for more code reuseVincent Petry2017-01-111-143/+10
| | | | Signed-off-by: Vincent Petry <pvince81@owncloud.com>
* DI for root.phpLukas Reschke2016-11-021-34/+91
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* optimize Folder::getById to use less queriesRobin Appelman2016-10-121-49/+104
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix getMock FolderTestsRoeland Jago Douma2016-09-131-96/+104
|
* use limit instead of since when listing recent filesRobin Appelman2016-07-221-7/+6
|
* fix testRobin Appelman2016-07-221-1/+4
|
* add recent files to node apiRobin Appelman2016-07-221-4/+167
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+795
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader