function AssetAggregationAcrossPagesTest::doRequests

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

2 calls to AssetAggregationAcrossPagesTest::doRequests()
AssetAggregationAcrossPagesTest::testFrontAndRecipesPages in core/profiles/demo_umami/tests/src/FunctionalJavascript/AssetAggregationAcrossPagesTest.php
Checks the asset requests made when the front and recipe pages are visited.
AssetAggregationAcrossPagesTest::testFrontAndRecipesPagesAuthenticated in core/profiles/demo_umami/tests/src/FunctionalJavascript/AssetAggregationAcrossPagesTest.php
Checks the asset requests made when the front and recipe pages are visited.

File

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

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.