You are here

public function DevelToolbarTest::setUp in Devel 8

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

Overrides BrowserTestBase::setUp

File

tests/src/Functional/DevelToolbarTest.php, line 53

Class

DevelToolbarTest
Tests devel toolbar module functionality.

Namespace

Drupal\Tests\devel\Functional

Code

public function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this
    ->drupalPlaceBlock('page_title_block');
  $this->develUser = $this
    ->drupalCreateUser([
    'administer site configuration',
    'access devel information',
    'execute php code',
    'access toolbar',
  ]);
  $this->toolbarUser = $this
    ->drupalCreateUser([
    'access toolbar',
  ]);
}