Verified Commit 51b7955f authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3379199 by Spokje, longwave, smustgrave: [random test failure]...

Issue #3379199 by Spokje, longwave, smustgrave: [random test failure] DisplayFeedTranslationTest::testFeedFieldOutput
parent 2e636177
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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();
  }

  /**