Closed (fixed)
Project:
Drupal core
Version:
11.3.x-dev
Component:
contact.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Oct 2025 at 09:19 UTC
Updated:
21 Nov 2025 at 14:54 UTC
Jump to comment: Most recent
Comments
Comment #3
andypostComment #4
andypostI see it has conflicts with #3535775: Remove Contact module from the Standard profile
Comment #5
andypostHope I fixed tests
Comment #6
quietone commented@andypost, thanks for the fixes.
Previously, I moved the needed test files to the module being deprecated, so let's try that.
Comment #7
andypostit will help to split it to contib without dated drupal_migrate_ui
Comment #8
andypostrebased after previous removals
Comment #9
andypostsomehow it started to fail
Comment #10
andyposthope fixed
Comment #11
quietone commented@andypost, thanks for updating the tests.
I reviewed the changes to the tests and I agree that they are correct.
Comment #12
dcam commentedI tried to be thorough about checking for other contact-related tests. There's probably a more efficient way to do it, but I used this grep command:
grep -ir --exclude-dir=contact --exclude-dir=migrate_drupal_ui --exclude-dir=phpstan-tmp --exclude-dir=fixtures --exclude-dir=lib --exclude=.phpstan-baseline.php "contact" ./. Here is what I found:core/tests/Drupal/KernelTests/Core/Entity/ContentEntityNullStorageTest.php- This isn't specifically contact-related, but contact is the only thing tested by it. It probably doesn't need to be moved, but I wanted to mention it.core/modules/config_translation/tests/src/Functional/ConfigTranslationUiModulesTest.php- It looks liketestContactConfigEntityTranslation()needs to be copied.core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php- It looks likedoContactFormsListTest()needs to be copied.core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.phpandcore/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php- These test migrating permissions, including contact's. Does that need to be preserved?core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserContactSettingsTest.php- Test migrating user contact settings from D6.core/modules/user/tests/src/Kernel/Plugin/migrate/source/d7/UserTest.php- I may be mistaken, but I think this tests migrating user contact settings from D7.Are these in-scope or is this issue limited to only migrate_drupal_ui tests?
Comment #13
quietone commented@dcam, thanks for searching for usages of contact.
Answering your last question first, this can be expanded to handle the migrate kernel tests as well. That might make it easier to ensure the test fixture has everything needed. so, for now, let's investigate those tests. I can probably do that tomorrow.
core/tests/Drupal/KernelTests/Core/Entity/ContentEntityNullStorageTest.php - is mentioned at #3520460-12: [meta] Tasks to deprecate the Contact module. That still needs discussion on the meta and/or a child issue. I haven't looked at it myself.
core/modules/config_translation/tests/src/Functional/ConfigTranslationUiModulesTest.php and core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php are part of #3551599: Remove use of Contact from config_translation tests.
Comment #14
quietone commentedFor the user module,
Comment #15
quietone commentedComment #16
quietone commentedRebased and changed the Kernel tests to use the new fixture in the contact module.
Comment #17
smustgrave commentedTrying to draw up memory from when we did this for book.
Copying of the fixtures into contact looks correct and inline with what was done then too.
All references of contact remaining in migrate seems to be addressed (minus the change here).
believe this one is good, not sure what else to review so will go on a limb.
Saved credit for everyone on this ticket (not myself).
Comment #18
alexpottCommitted and pushed 586641adfee to 11.x and f0638f8f3dc to 11.3.x. Thanks!