aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Node
Commit message (Collapse)AuthorAgeFilesLines
* 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-136-24/+18
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(files): copy live photosMaxence Lange2024-03-081-3/+6
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* perf: cache path by id to speedup getting nodes by idRobin Appelman2024-03-046-45/+92
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Move Node HookConnecter events to IEventDispatcherJoas Schilling2023-07-271-12/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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-174-126/+66
| | | | 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>
* Fix hookconnector testsLouis Chemineau2023-01-261-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* 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>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix testJoas Schilling2022-04-201-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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-043-48/+32
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-244-10/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* adjust tests to new fs setupRobin Appelman2022-03-046-47/+76
| | | | 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>
* 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>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-124-74/+74
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsJoas Schilling2020-06-241-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add lazy events for the Node APIRoeland Jago Douma2020-05-281-38/+97
| | | | | | | | | | | Right now if you want to get events via the Node API you have to have a real instance of the Root. Which in turns sets up the whole FS. We should make sure this is done lazy. Else enabling the preview generator for example makes you setup the whole FS on each and every authenticated call. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+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>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-273-6/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-253-6/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-265-58/+58
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-254-161/+161
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-275-69/+69
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-274-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Files first to use own GenericEventArthur Schiwon2019-11-261-3/+8
| | | | | | * those are added to 18 only anyway :) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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>
* adapt file hooks test to eventdispatcher utilizationArthur Schiwon2019-09-091-23/+66
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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>
* Add dispatcher events to User and Group objectsJoas Schilling2019-03-013-17/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* adjust testsRobin Appelman2019-02-071-10/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>