nextcloud-server/tests
Daniel Calviño Sánchez 16c26101d0 fix: Fix user collaborators returned when searching for mail collaborators
The MailPlugin collaborator returned results for both user and mail
collaborators, but it was registered only for mail collaborators. While
it might make sense to move the user results to the UserPlugin instead
that change would be more complex and riskier, so for now the MailPlugin
is now registered for both user and mail collaborators and the results
are limited only to the registered type.

As the plugins are registered only with their class and then resolved
when needed using dependency injection it is not possible (as far as I
know) to provide an explicit parameter in the constructor to
differentiate whether the MailPlugin should return user or mail
collaborators. To overcome this two subclasses are introduced,
MailByMailPlugin and UserByMailPlugin, which just hardcode in their
constructor the collaborator type that their parent MailPlugin must use,
and those subclasses are the ones registered instead of the MailPlugin
(which still contains all the logic).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-11-12 13:22:25 +07:00
..
Core fix(core): Stop abusing the cache for avatar upload 2025-09-26 19:11:30 +07:00
apps
blueprints
data chore: remove mbstring.func_overload from htaccessWithValidModifiedContent 2025-08-25 13:19:36 +07:00
docker
lib fix: Fix user collaborators returned when searching for mail collaborators 2025-11-12 13:22:25 +07:00
objectstore
autoload.php chore: Add an autoload.php file for tests relying on core class 2025-05-19 11:30:37 +07:00
bootstrap.php test: add env option to disable loading all installed apps during tests 2025-08-11 13:35:57 +07:00
databases-all-config.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
drone-run-integration-tests.sh
drone-run-php-tests.sh
drone-wait-objectstore.sh
enable_all.php chore: Replace last calls to OC_App::enable by IAppManager 2025-08-18 17:09:39 +07:00
karma.config.js test: adjust karma global state mock 2025-06-16 15:55:12 +07:00
phpunit-autotest-external.xml ci: Migrate PHPUnit configs 2025-06-06 14:36:31 +07:00
phpunit-autotest.xml ci: Migrate PHPUnit configs 2025-06-06 14:36:31 +07:00
preseed-config.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
redis-cluster.config.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
redis.config.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
startsessionlistener.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00