function BigPipeRegressionTest::testMultipleOccurrences
Tests that all occurrences of the same placeholder are replaced.
File
-
core/
modules/ big_pipe/ tests/ src/ FunctionalJavascript/ BigPipeRegressionTest.php, line 215
Class
- BigPipeRegressionTest
- BigPipe regression tests.
Namespace
Drupal\Tests\big_pipe\FunctionalJavascriptCode
public function testMultipleOccurrences() : void {
\Drupal::service('module_installer')->install([
'big_pipe_test',
]);
$user = $this->drupalCreateUser();
$this->drupalLogin($user);
$assert_session = $this->assertSession();
$this->drupalGet(Url::fromRoute('big_pipe_test_multi_occurrence'));
$this->assertNotNull($assert_session->waitForElement('css', 'script[data-big-pipe-event="stop"]'));
$assert_session->elementsCount('css', 'p.multiple-occurrence-instance', 3);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.