aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Share20/ManagerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: run rectorrector-phpunit10Robin Appelman2025-07-011-54/+22
| | | | 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 testsRobin Appelman2025-06-121-125/+127
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf(Share20): Add interface to query all shares in a folder without ↵perf/share20/get-all-shares-in-folderprovokateurin2025-05-081-15/+8
| | | | | | filtering by user Signed-off-by: provokateurin <kate@provokateurin.de>
* test: Finish migrating tests/Core/ to PHPUnit 10 compatible codetest/noid/more-phpunit-10Joas Schilling2025-05-021-226/+225
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(files_sharing): fix share creation error handlingskjnldsv2025-04-091-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(sharing): Move permission validation to share managerFerdinand Thiessen2025-01-281-4/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Revert "fix(Share20\Manager): Ensure node is still accessible when checking ↵revert/share-node-accessibleprovokateurin2025-01-241-29/+4
| | | | | | | | share" This reverts commit c2ca99e2f641396b6823c1e675afd3ecb486e744. Signed-off-by: provokateurin <kate@provokateurin.de>
* test: Update testsChristopher Ng2025-01-151-0/+7
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(tests): Adapt ManagerTest to change in Exception class usedfix/remove-share-hint-exception-wrappingCôme Chilliet2024-12-121-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(Share20\Manager): Ensure node is still accessible when checking shareprovokateurin2024-11-251-4/+29
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(Share20\Manager): Return all shares on IShareOwnerlessMountprovokateurin2024-11-251-0/+69
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Use getRelativePath method to check if node is inside folderfix/avoid-invalid-share-on-transfer-ownershipCôme Chilliet2024-10-141-10/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix promotion of reshares from subsubfoldersCôme Chilliet2024-10-141-16/+84
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Fix share tests to test new reshare promotion systemCôme Chilliet2024-10-141-17/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Tidy up code for reshare deletionCôme Chilliet2024-10-141-8/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: delete re-shares when deleting the parent shareLuka Trovic2024-10-141-3/+115
| | | | | | | Note: Removed part about fix command from original PR Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(l10n): Rephrasing some exceptions to be translatedGit'Fellow2024-09-201-23/+23
| | | | | | | | | | | | 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: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-161-13/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-115/+115
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix: share manager tests translation stringJohn Molakvoæ2024-09-041-1/+1
| | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-10/+10
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-17/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* test: adjust test to new permissions check logicRobin Appelman2024-05-031-6/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(tests): Fix tests when daytime saving time change happened recentlyCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(files_sharing): allow to specify allowed groups to share instead of ↵Corentin Damman2024-03-151-2/+9
| | | | | | | | excluded groups Relates to #3387 Signed-off-by: Corentin Damman <c.damman@intopix.com>
* refactor: make share manager buildableRobin Appelman2024-03-061-176/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-6/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-221-22/+76
| | | | | | | | Because of timezones, not saving time can lead to unexpected behaviour when sharing an item sooner than timezone offset Example: sharing a file before 9am when in UTC+9 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: phpunitJohn Molakvoæ2024-02-131-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* feat(php,vue): Create a new parameterBaptiste Fotia2024-01-311-0/+5
| | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-10/+25
|\ | | | | move share permission logic to storage wrapper
| * cleanup di for share permissions wrapperRobin Appelman2023-08-161-10/+25
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix tests, add test for the new featureCôme Chilliet2023-08-281-13/+77
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove legacy dispatcher from share managerJoas Schilling2023-07-281-15/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate unShare events to typed eventsJoas Schilling2023-07-281-34/+55
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate Sharing events to typed eventsJoas Schilling2023-07-281-30/+31
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Move Sharing events to IEventDispatcherJoas Schilling2023-07-271-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix types for reading and writing config valuesjld31032023-04-051-4/+4
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* composer run cs:fixCôme Chilliet2023-01-201-4/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove deprecated at matcher from tests/libCôme Chilliet2022-08-291-142/+111
| | | | | | Only 15 warnings left in there Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix share manager testsJulien Veyssier2022-08-021-1/+28
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Fix share attribute related tests + code styleVincent Petry2022-07-281-0/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-281-1/+5
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #31194 from ↵Vincent Petry2022-04-061-0/+34
|\ | | | | | | | | nextcloud/feat/allow-to-exclude-groups-from-password-enforcement Allow to disable password policy enforcement for selected groups
| * Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-0/+34
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-3/+3
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Check style updateCarl Schwan2022-01-131-62/+62
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add unit test for share enumeration methodJoas Schilling2021-11-091-1/+79
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>