Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Tests are failing.
1) Drupal\Tests\content_moderation_notifications\Kernel\NotificationsTest::testEmailDelivery
Drupal\Core\Entity\EntityStorageException: array_flip(): Can only flip STRING and INTEGER values!
/var/www/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php:846
/var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:395
/var/www/html/modules/contrib/content_moderation_notifications/tests/src/Kernel/NotificationsTest.php:60
Proposed resolution
Fix them.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#7 | tests_are_failing_ag-3097199-7.patch | 1.06 KB | jhedstrom |
| |||
#3 | content_moderation_notifications-hotfix-for-drupal8-8.patch | 532 bytes | radamiel |
|
Comments
Comment #2
jhedstromComment #3
radamiel CreditAttribution: radamiel commentedComment #4
berenddeboer CreditAttribution: berenddeboer at Xplain Hosting commentedIs this the right patch? I've read something that getLatestRevision() is deprecated, and you should call RevisionableStorageInterface::getLatestRevisionId(). Not sure that's applicable though.
Comment #5
berenddeboer CreditAttribution: berenddeboer at Xplain Hosting commentedRegardless, the patch fixes the issue.
Comment #6
jhedstromWe should probably call the non-deprecated method here instead I think.
Comment #7
jhedstromThis replaces the deprecated method call.
Comment #8
jhedstromComment #10
jhedstromThanks all!