Problem/Motivation
Contact module is being deprecated. Usages is tests not in Contact needs to removed and test coverage moved to the Contact module.
Steps to reproduce
Proposed resolution
Use a test module instead of Contact in \Drupal\Tests\user\Functional\UserPermissionsTest::testAccessBundlePermission
Remaining tasks
MR
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3555375
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3555375-contact-permissions
changes, plain diff MR !13717
Comments
Comment #4
andypostI found no testing config entity with canonical route so changed test to use comment module
Comment #5
dcam commentedI'm actually not that familiar with the Comment module, so I had to double-check that there are no bundle-related permissions. There aren't. Using Comment here seems like a good, straightforward replacement. And the test is still passing. This looks good to me.
Comment #6
dcam commentedI just noticed #1903138: Move global comment permissions to comment-type level which if implemented would cause this test to need to be updated again. I don't think a 12-year-old issue that isn't approaching a resolution should hold up this task that's necessary for getting Contact out of Core. But it does need to be mentioned.
Comment #7
andypostThank you, better to link'em
Comment #10
catchYes would be slightly better to move to one of the entity_test modules here if there is one that just works, but also OK to defer that until comment module changes something.
Committed/pushed to 11.x and cherry-picked to 11.3.x, thanks!