function StandardPerformanceTest::setUp

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

Overrides PerformanceTestBase::setUp

File

core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php, line 42

Class

StandardPerformanceTest
Tests the performance of basic functionality in the standard profile.

Namespace

Drupal\Tests\standard\FunctionalJavascript

Code

protected function setUp() : void {
  parent::setUp();
  // Create a node to be shown on the front page.
  $this->drupalCreateNode([
    'type' => 'article',
    'promote' => NodeInterface::PROMOTED,
  ]);
  // Grant the anonymous user the permission to look at user profiles.
  user_role_grant_permissions('anonymous', [
    'access user profiles',
  ]);
}

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