nextcloud/tests/lib
Daniel Calviño Sánchez a4bf16e779 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 21:08:25 +01:00
..
Accounts fix(settings): fix test 2025-07-07 10:02:19 +00:00
Activity fix: Adapt notifications and activity tests to new DI dependency 2024-09-17 15:28:09 +02:00
App fix(appstore): Make appstore timeout configurable 2025-09-30 15:18:45 +00:00
AppFramework fix: Change UserAgent to *cloud 2025-02-21 09:30:10 +00:00
Archive chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Authentication fix(auth): Fix invalid unique constraint violation catch 2025-09-15 13:37:35 +02:00
Avatar refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
BackgroundJob perf(cron): Delay (re)checking timed jobs 2025-03-31 15:33:59 +00:00
Cache refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Calendar fix: iMip reply from outlook.com does not contain organizer property 2025-10-23 12:14:00 -04:00
Collaboration fix: Fix user collaborators returned when searching for mail collaborators 2025-11-12 21:08:25 +01:00
Command fix(jobs): Limit command jobs to known cases 2025-11-05 13:51:42 +01:00
Comments test: Speed up comments test 2025-05-21 08:30:28 +02:00
Config fix: revive always storing lowercased email addresses 2025-06-24 14:24:48 +02:00
Contacts/ContactsMenu feat(contacts): Show time difference for users in different timezones 2025-01-16 18:10:04 +01:00
DB feat(db): add SSL/TLS support for PostgreSQL 2025-09-22 14:59:54 +02:00
Diagnostics refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
DirectEditing refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Encryption chore: Fix encryption test use statement 2024-09-16 18:11:38 +02:00
Federation fix(federation): allows equal signs in federation id 2025-04-23 19:23:52 +00:00
Files fix: validate filename when creating file from template 2025-11-04 16:08:49 +01:00
FilesMetadata test: add some minimal testing for metadata storage 2024-11-07 16:27:16 +01:00
GlobalScale refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Group test: fix periodic Test\Group\DatabaseTest::testSearchGroups failure 2025-01-22 10:53:03 -05:00
Hooks refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Http fix: do not query CNAME if A succeeded already 2024-11-06 20:21:38 +01:00
IntegrityCheck chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00
L10N fix(l10n): Don't fallback from 3-letter languages to 2-letter 2025-10-16 11:43:22 +00:00
Lock refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Lockdown test: Fix IStorage return types 2024-09-26 17:29:48 +02:00
Log chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Mail fix(mail): use matching text color for primary elements 2025-04-17 10:43:58 +00:00
Memcache refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Migration refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Net fix(tests): Add IpAddressClassifier v6 zone ID test 2024-11-04 09:31:48 -05:00
Notification fix: Adapt notifications and activity tests to new DI dependency 2024-09-17 15:28:09 +02:00
OCS refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Preview fix: unbloc ffmpeg on some broken videos 2025-06-12 11:58:47 +02:00
Profile/Actions fix(FediverseAction): Ensure valid fediverse links are generated 2025-02-06 15:46:15 +01:00
Remote refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Repair refactor: convert sanitize account properties repair step to background job 2025-02-24 15:23:20 +00:00
RichObjectStrings Revert "refactor(RichObjectStrings): Only log error if key or value is not string in validator" 2025-04-09 08:29:43 +02:00
Route chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Search test(SearchComposerTest): add unit test for getProviders with mixed order values 2025-08-14 13:03:12 +00:00
Security ci: Update testing certificates that expired after 10 years 2025-08-25 11:18:59 +00:00
Session refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Settings feat(DeclarativeSettings): Allow to implement value getter and setter directly in Form 2024-10-15 20:33:45 +02:00
SetupCheck feat: Make CheckServerResponseTrait public and provide as OCP\SetupCheck\CheckServerResponseTrait 2024-09-16 14:58:21 +02:00
Share chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Share20 chore(tests): Adapt DefaultShareProviderTest to new constructor parameter 2025-07-29 09:16:20 +00:00
Support chore(tests): Adapt tests to the countUsers refactor 2025-01-14 16:34:15 +01:00
SystemTag fix(systemtags): case-insensitive search & prevent duplicates 2025-07-10 08:50:23 +02:00
Talk chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TaskProcessing fix(TaskProcessing): Cache task types by user language 2025-09-18 09:36:19 +02:00
Template refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
TextProcessing refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Traits fix(UserTrait): Fix backend initialization 2024-10-08 11:12:01 +02:00
Updater chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00
User fix(usermanager): Don't throw when checking if a too long user id is an existing user 2025-04-17 14:55:12 +00:00
Util chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AllConfigTest.php fix: revive always storing lowercased email addresses 2025-06-24 14:24:48 +02:00
AppConfigTest.php feat(appconfig): add searchKeys() 2025-07-21 10:27:50 +00:00
AppScriptSortTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AppTest.php fix(TemplateLayout): core is not an app but the server itself 2025-01-24 18:12:18 +00:00
AutoLoaderTest.php chore: Drop unused legacy OC_Files 2024-09-28 13:18:40 +02:00
BinaryFinderTest.php feat: make search path for BinaryFinder customizable. 2024-09-20 17:00:06 +02:00
CapabilitiesManagerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
ConfigTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
ContactsManagerTest.php fix(cardav): only show useres from enabled addressBooks in contacts menu 2025-03-19 23:46:57 +01:00
DateTimeFormatterTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
EmojiHelperTest.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
ErrorHandlerTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
EventSourceFactoryTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
HelperStorageTest.php refactor(Storage): Align all Storage constructors 2024-10-23 13:24:18 +02:00
HookHelper.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ImageTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
InfoXmlTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
InitialStateServiceTest.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
InstallerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LargeFileHelperGetFileSizeTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LargeFileHelperTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LegacyHelperTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LoggerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
MemoryInfoTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
NaturalSortTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
NavigationManagerTest.php fix(navigation): Fix default app entry registered as closure 2025-04-28 14:54:35 +00:00
RepairTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
ServerTest.php fix(tests): Remove deprecated tests for ServerTest 2024-09-17 17:48:01 +02:00
SetupTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
SubAdminTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
TagsTest.php fix(TagsTest): Declare rootFolder property 2025-09-15 17:09:11 +02:00
TemplateFunctionsTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
TemplateLayoutTest.php fix: ensure enabled themes are set on the template 2025-04-04 09:23:45 +02:00
TempManagerTest.php refactor(TempManager): Simplify and unify implementations and remove legacy behavior 2025-03-03 15:25:00 +00:00
TestCase.php feat(test-case): allow to use PHPUnit Group attributes to mark tests requiring database 2025-10-06 15:10:37 +02:00
TestMoveableMountPoint.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
UpdaterTest.php chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00
UrlGeneratorTest.php feat(files): Make the files download action use WebDAV zip download 2024-09-28 13:18:29 +02:00
UtilCheckServerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
UtilTest.php chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00