Problem/Motivation
\Drupal\Tests\Core\Entity\ContentEntityBaseUnitTest cuases PHP 8.5 dprecations due to incomplete mocking on EntityType
Steps to reproduce
Run \Drupal\Tests\Core\Entity\ContentEntityBaseUnitTest on PHP 8.5
Proposed resolution
Fix the mock.
Remaining tasks
User interface changes
None
Introduced terminology
N/a
API changes
None
Data model changes
None
Release notes snippet
N/a
Issue fork drupal-3555886
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:
Comments
Comment #2
alexpottComment #4
alexpottComment #5
smustgrave commentedUpgraded my ddev with 8.5
Without the MR
3 PHP deprecations:
After applying the MR I still get 2
example
Comment #6
alexpottComment #7
andypostAgree this fix is cleaner
Comment #11
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!