diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php index 985952eae95fdaff8db1bf444ada09f1172313da..2ac92b92e07b3cde8666f06834e66de7286c1a6d 100644 --- a/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/DisplayFeedTranslationTest.php @@ -6,6 +6,7 @@ use Drupal\Tests\views\Functional\ViewTestBase; use Drupal\language\Entity\ConfigurableLanguage; use Drupal\node\Entity\Node; +use Drupal\Tests\WaitTerminateTestTrait; /** * Tests the feed display plugin with translated content. @@ -16,6 +17,7 @@ class DisplayFeedTranslationTest extends ViewTestBase { use PathAliasTestTrait; + use WaitTerminateTestTrait; /** * Views used by this test. @@ -85,6 +87,11 @@ protected function setUp($import_test_views = TRUE, $modules = ['views_test_conf // Rebuild the container so that the new languages are picked up by services // that hold a list of languages. $this->rebuildContainer(); + + // The \Drupal\path_alias\AliasWhitelist service performs cache clears after + // Drupal has flushed the response to the client. We use + // WaitTerminateTestTrait to wait for Drupal to do this before continuing. + $this->setWaitForTerminate(); } /**