nextcloud/tests/lib
Daniel Calviño Sánchez c40fcba5a4 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-11 01:20:17 +01:00
..
Accounts refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Activity refactor: Cleanup some unit tests 2025-10-01 10:11:27 +02:00
App Merge pull request #55405 from nextcloud/carl/cleanup-some-tests 2025-10-01 15:02:00 +02:00
AppFramework refactor(tests): special name method is deprecated in PHPUnit 2025-11-05 15:42:34 +01:00
Archive chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Authentication refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Avatar chore: setting test metadata in annotations is deprecated (use attributes) 2025-11-05 15:42:40 +01:00
BackgroundJob refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Cache refactor(tests): returnValue is deprecated 2025-11-05 15:42:34 +01:00
Calendar fix: iMip reply from outlook.com does not contain organizer property 2025-10-14 12:44:06 -04:00
Collaboration fix: Fix user collaborators returned when searching for mail collaborators 2025-11-11 01:20:17 +01:00
Command fix(jobs): Limit command jobs to known cases 2025-11-04 11:10:40 +01:00
Comments refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Config refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Contacts/ContactsMenu chore: run rector 2025-07-01 22:45:52 +02:00
DB refactor(tests): teardown is now always called - also when skipped 2025-11-05 15:42:34 +01:00
Diagnostics chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
DirectEditing refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Encryption refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Federation refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Files chore: setting test metadata in annotations is deprecated (use attributes) 2025-11-05 15:42:40 +01:00
FilesMetadata refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
GlobalScale chore: run rector 2025-07-01 22:45:52 +02:00
Group Revert "feat(group): Sanitize group names and ids on creation" 2025-11-07 10:37:50 +01:00
Hooks refactor: use logical && || instead of weak and or operators 2025-09-27 23:02:18 +02:00
Http chore: Add server version to default crawler user agent 2025-11-07 11:20:56 +01:00
IntegrityCheck test: Adjust the hashes and signatures 2025-08-25 13:19:36 +02:00
L10N fix(l10n): Don't fallback from 3-letter languages to 2-letter 2025-10-16 11:46:01 +02:00
Lock refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Lockdown refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Log chore: run rector 2025-07-01 22:45:52 +02:00
Mail feat(ocp): add email address validator 2025-08-14 18:34:36 +02:00
Memcache refactor(tests): getMockForTrait is deprecated 2025-11-05 15:42:34 +01:00
Migration chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Net test(net): include test for localhost by IP 2025-10-14 10:33:35 +02:00
Notification chore: run rector 2025-07-01 22:45:52 +02:00
OCS chore: run rector 2025-07-01 22:45:52 +02:00
Preview chore(tests): cleanup previews in teardown 2025-11-05 15:42:40 +01:00
Profile/Actions chore: run rector 2025-07-01 22:45:52 +02:00
Remote chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Repair refactor(tests): teardown is now always called - also when skipped 2025-11-05 15:42:34 +01:00
RichObjectStrings chore: run rector 2025-07-01 22:45:52 +02:00
Route refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Search test(SearchComposerTest): add unit test for getProviders with mixed order values 2025-08-11 09:42:56 +02:00
Security refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Session chore: run rector 2025-07-01 22:45:52 +02:00
Settings chore: run rector 2025-07-01 22:45:52 +02:00
SetupCheck chore: run rector 2025-07-01 22:45:52 +02:00
Share refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Share20 refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Snowflake feat(config): add serverid configuration and use it for Snowflakes 2025-11-03 14:25:09 +01:00
Support chore: Fix CrashReport\Registry tests 2025-07-08 13:32:14 +02:00
SystemTag refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Talk chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TaskProcessing Merge pull request #56063 from nextcloud/tests/taskprocessing 2025-10-31 15:04:49 +01:00
Template refactor(tests): getMockForAbstractClass is deprecated 2025-11-05 15:42:34 +01:00
TextProcessing refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
Traits chore: migrate to PHPUnit 11 2025-11-05 15:42:33 +01:00
Updater chore: run rector 2025-07-01 22:45:52 +02:00
User chore: migrate to PHPUnit 11 2025-11-05 15:42:33 +01:00
Util chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
AllConfigTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
AppConfigIntegrationTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
AppConfigTest.php refactor(Memcache\Factory): move prefix generation to the factory class 2025-08-18 13:24:18 +02:00
AppScriptSortTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
AppTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
BinaryFinderTest.php test(BinaryFinder): Make sure the test is portable between systems 2025-09-05 09:47:47 +02:00
CapabilitiesManagerTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ConfigTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ContactsManagerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
DateTimeFormatterTest.php chore: run rector 2025-07-01 22:45:52 +02:00
EmojiHelperTest.php chore: run rector 2025-07-01 22:45:52 +02:00
ErrorHandlerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
EventSourceFactoryTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
FilesTest.php refactor: Remove OC_Helper::streamCopy 2025-09-28 12:52:14 +02:00
HelperStorageTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
HookHelper.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ImageTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
InfoXmlTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
InitialStateServiceTest.php chore: run rector 2025-07-01 22:45:52 +02:00
InstallerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
LargeFileHelperGetFileSizeTest.php chore: run rector 2025-07-01 22:45:52 +02:00
LargeFileHelperTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
LegacyHelperTest.php refactor: Remove OC_Helper::streamCopy 2025-09-28 12:52:14 +02:00
LoggerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
MemoryInfoTest.php chore: setting test metadata in annotations is deprecated (use attributes) 2025-11-05 15:42:40 +01:00
NaturalSortTest.php chore: run rector 2025-07-01 22:45:52 +02:00
NavigationManagerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
RepairTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ServerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
SetupTest.php chore: run rector 2025-07-01 22:45:52 +02:00
SubAdminTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
TagsTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
TemplateFunctionsTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
TemplateLayoutTest.php fix: Cleanup and fix tests, and fix related issues in code 2025-09-30 11:53:59 +02:00
TempManagerTest.php chore: run rector on tests 2025-06-12 18:31:58 +02:00
TestCase.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
TestMoveableMountPoint.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
UpdaterTest.php fix: Cleanup OC_App uses in Updater class 2025-08-18 16:13:14 +02:00
UrlGeneratorTest.php chore: migrate @small and @medium to attributes 2025-10-27 21:56:04 +01:00
UtilCheckServerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
UtilTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00