function PerformanceTest::setUp

Overrides PerformanceTestBase::setUp

File

core/modules/navigation/tests/src/FunctionalJavascript/PerformanceTest.php, line 37

Class

PerformanceTest
Tests performance with the navigation toolbar enabled.

Namespace

Drupal\Tests\navigation\FunctionalJavascript

Code

protected function setUp() : void {
  parent::setUp();
  // Uninstall the toolbar.
  \Drupal::service('module_installer')->uninstall([
    'toolbar',
  ]);
  \Drupal::service('module_installer')->install([
    'navigation',
  ]);
}

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