diff -u b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php --- b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php @@ -937,12 +937,17 @@ // The untranslatable field is shared and only deleted once, for the // default langcode. - $actual = \Drupal::state()->get('entity_test.delete.untranslatable_test_field'); - $actual = array_keys($actual); + $deleted_information = \Drupal::state()->get('entity_test.delete.untranslatable_test_field'); + $actual = array_keys($deleted_information); $expected_untranslatable = ['en']; sort($actual); sort($expected_untranslatable); $this->assertEqual($actual, $expected_untranslatable); + // Ensure that the delete method was provided with the correct information + // that the entity is being deleted. + foreach ($expected_untranslatable as $langcode) { + $this->assertTrue($deleted_information[$langcode]); + } } /**