Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_moderation / tests / src / Functional / ModerationLocaleTest.php
index 28de50c535490c93bfdb4b65681f484a82c548b3..1bdbb7e461104ace7cfed5877cc9c6eb54aa4500 100644 (file)
@@ -482,6 +482,9 @@ class ModerationLocaleTest extends ModerationStateTestBase {
   protected function loadTranslation(NodeInterface $node, $langcode) {
     /** @var \Drupal\node\NodeStorageInterface $storage */
     $storage = $this->container->get('entity_type.manager')->getStorage('node');
+    // Explicitly invalidate the cache for that node, as the call below is
+    // statically cached.
+    $storage->resetCache([$node->id()]);
     /** @var \Drupal\node\NodeInterface $node */
     $node = $storage->loadRevision($storage->getLatestRevisionId($node->id()));
     return $node->getTranslation($langcode);