function AssetAggregationAcrossPagesTest::doRequests

Performs a common set of requests so the above test methods stay in sync.

File

core/profiles/demo_umami/tests/src/FunctionalJavascript/AssetAggregationAcrossPagesTest.php, line 82

Class

AssetAggregationAcrossPagesTest
Tests demo_umami profile performance.

Namespace

Drupal\Tests\demo_umami\FunctionalJavascript

Code

protected function doRequests() : void {
  $this->drupalGet('<front>');
  // Give additional time for the request and all assets to be returned
  // before making the next request.
  sleep(2);
  $this->drupalGet('articles');
  sleep(2);
  $this->drupalGet('recipes');
  sleep(2);
  $this->drupalGet('recipes/deep-mediterranean-quiche');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.