aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/ViewTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: run rectorrector-phpunit10Robin Appelman2025-07-011-45/+31
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply new CSFixer rulesFerdinand Thiessen2025-07-011-0/+1
| | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
* chore: run rector on tests with new rulerector-testsRobin Appelman2025-06-121-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: run rector on testsRobin Appelman2025-06-121-27/+34
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(tests): Remove calls to removed getMountProviderCollection from testsCôme Chilliet2025-05-161-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Disable encryption wrapper when it makes senseCôme Chilliet2025-05-131-0/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Remove Encryption disabling in ViewTest to avoid side effectsCôme Chilliet2025-05-131-10/+6
| | | | | | Adapt tests a bit to make them pass with Encryption wrapper registered Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Unregister encryption modules in ViewTest to avoid side effectsCôme Chilliet2025-05-131-0/+6
| | | | | | It was clearing the hooks with the same results before Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* test: Finish migrating tests/Core/ to PHPUnit 10 compatible codetest/noid/more-phpunit-10Joas Schilling2025-05-021-57/+65
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Replace all usages of OC_User backend method calls by IUserManagerfix/cleanup-user-backendsCôme Chilliet2025-04-101-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: improve checks for moving shares/storages into other mountsRobin Appelman2025-01-031-9/+42
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test(View): Copy preserves contentLouis Chemineau2024-12-031-0/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Correctly copy the cache information on copy operationsLouis Chemineau2024-12-031-0/+1
| | | | | | Needed to copy the `encrypted` flag of encrypted files when those files are two level down in a moved folder. Signed-off-by: Louis Chemineau <louis@chmn.me>
* refactor(Storage): Make all parameter types strong typesprovokateurin2024-10-071-6/+6
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* test: Fix IStorage return typesprovokateurin2024-09-261-7/+41
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(tests): Pause trashbin for lock tests in ViewTest using rmdir and unlinkcleanup/event/trashbinCôme Chilliet2024-09-241-1/+16
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Fix test to remove call to non-existing constructorfix/move-storage-constructor-to-specific-interfaceCôme Chilliet2024-09-231-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-81/+81
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(files): Check if the target path is a descendant of the shared folder pathGit'Fellow2024-09-051-1/+9
| | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: fix tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: add tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests
* Merge pull request #47417 from nextcloud/fix/files/create-mountpoint-parentsKate2024-09-041-0/+31
|\
| * fix(files): Create non-existent parents of mountpointsprovokateurin2024-08-221-0/+31
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-7/+7
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-4/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Merge pull request #40131 from summersab/refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-151-1/+2
|\
| * Merge branch 'master' into refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-151-5/+4
| |\ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | Refactor `OC\Server::getShareManager`Andrew Summers2023-08-291-3/+4
| | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | Refactor `OC\Server::getLockingProvider`Andrew Summers2024-03-151-3/+3
| |/ |/| | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | 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>
* | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-2/+3
|\ \ | | | | | | move share permission logic to storage wrapper
| * | cleanup di for share permissions wrapperRobin Appelman2023-08-161-2/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-021-2/+0
| |/ |/| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-181-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix setting static property in tests on PHP 8.3Côme Chilliet2023-08-141-2/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove unused method getLocalFolderCôme Chilliet2023-04-031-1/+0
| | | | | | It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Tidy up typing in OC\Files\ViewCôme Chilliet2023-04-031-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #36566 from nextcloud/mount-find-by-numeric-idJulius Härtl2023-02-081-0/+3
|\
| * fix testsRobin Appelman2023-02-071-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix filesize return type error in ViewTestCôme Chilliet2023-02-071-4/+16
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* add test for trying to fopen a file which no longer exists on diskRobin Appelman2022-09-291-0/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* Remove some more at matchers in tests/libCôme Chilliet2022-06-201-34/+21
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* adjust tests to new fs setupRobin Appelman2022-03-041-4/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix PHP deprecation warning in File/ViewTestCôme Chilliet2021-12-161-1/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Properly handle result when copying with failure and throw in testsJulius Härtl2021-01-051-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix writeStream mockingJulius Härtl2021-01-051-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Replace static call to Share::unshare with ShareManager->deleteShare in testsMorris Jobke2020-11-301-1/+3
| | | | | | And then cleanup all the code that is dead then... Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-13/+13
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use exceptions for error signaling in writeStreamRobin Appelman2020-07-231-1/+0
| | | | | | this remove the ambiguity when writing zero length files Signed-off-by: Robin Appelman <robin@icewind.nl>
* rollback cache rename if trashbin move failsRobin Appelman2020-07-231-7/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>