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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhedstrom created an issue. See original summary.

jhedstrom’s picture

Issue summary: View changes
radamiel’s picture

berenddeboer’s picture

Is this the right patch? I've read something that getLatestRevision() is deprecated, and you should call RevisionableStorageInterface::getLatestRevisionId(). Not sure that's applicable though.

berenddeboer’s picture

Status: Active » Reviewed & tested by the community

Regardless, the patch fixes the issue.

jhedstrom’s picture

Status: Reviewed & tested by the community » Needs review

We should probably call the non-deprecated method here instead I think.

jhedstrom’s picture

This replaces the deprecated method call.

jhedstrom’s picture

  • jhedstrom committed 931a8d5 on 8.x-3.x
    Issue #3097199 by jhedstrom, radamiel, berenddeboer: Tests are failing...
jhedstrom’s picture

Status: Needs review » Fixed

Thanks all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.