function BigPipeIdenticalPlaceholdersTest::testIdenticalPlaceholders
Tests that all occurrences of the same placeholder are replaced.
File
-
core/
modules/ big_pipe/ tests/ src/ FunctionalJavascript/ BigPipeIdenticalPlaceholdersTest.php, line 35
Class
- BigPipeIdenticalPlaceholdersTest
- Tests multiple occurrences of the same placeholder.
Namespace
Drupal\Tests\big_pipe\FunctionalJavascriptCode
public function testIdenticalPlaceholders() : void {
$this->drupalLogin($this->drupalCreateUser());
$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.