You are here

protected function ToolbarLegacyTest::setUp in Drupal 8

Overrides KernelTestBase::setUp

File

core/modules/toolbar/tests/src/Kernel/ToolbarLegacyTest.php, line 23

Class

ToolbarLegacyTest
Tests Toolbar module's legacy code.

Namespace

Drupal\Tests\toolbar\Kernel

Code

protected function setUp() {
  parent::setUp();

  // Generate menu links from system.links.menu.yml.
  \Drupal::service('router.builder')
    ->rebuild();
}