function OpenTelemetryPerformanceTest::doRequests

Same name and namespace in other branches
  1. 11.x core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryPerformanceTest.php \Drupal\Tests\demo_umami\FunctionalJavascript\OpenTelemetryPerformanceTest::doRequests()

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

3 calls to OpenTelemetryPerformanceTest::doRequests()
OpenTelemetryPerformanceTest::doTestFrontAndRecipesPages in core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryPerformanceTest.php
Checks the asset requests made when the front and recipe pages are visited.
OpenTelemetryPerformanceTest::doTestFrontAndRecipesPagesAuthenticated in core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryPerformanceTest.php
Checks the front and recipe page asset requests as an authenticated user.
OpenTelemetryPerformanceTest::doTestFrontAndRecipesPagesEditor in core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryPerformanceTest.php
Checks the front and recipe page asset requests as an editor.

File

core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryPerformanceTest.php, line 644

Class

OpenTelemetryPerformanceTest
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.