You are here

protected function DevelMenuLinksTest::setUp in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/DevelMenuLinksTest.php \Drupal\Tests\devel\Functional\DevelMenuLinksTest::setUp()
  2. 8.2 tests/src/Functional/DevelMenuLinksTest.php \Drupal\Tests\devel\Functional\DevelMenuLinksTest::setUp()
  3. 4.x tests/src/Functional/DevelMenuLinksTest.php \Drupal\Tests\devel\Functional\DevelMenuLinksTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/DevelMenuLinksTest.php, line 32

Class

DevelMenuLinksTest
Tests devel menu links.

Namespace

Drupal\Tests\devel\Functional

Code

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

  // Devel links currently appears only in the devel menu.
  // Place the devel menu block so we can ensure that these link works
  // properly.
  $this
    ->drupalPlaceBlock('system_menu_block:devel');
  $this
    ->drupalPlaceBlock('page_title_block');
  $this->develUser = $this
    ->drupalCreateUser([
    'access devel information',
    'administer site configuration',
  ]);
  $this
    ->drupalLogin($this->develUser);
}