You are here

public function DevelToolbarTest::setUp in Devel 8.3

Same name and namespace in other branches
  1. 8 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 DevelBrowserTestBase::setUp

File

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

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',
    'access toolbar',
  ]);
  $this->toolbarUser = $this
    ->drupalCreateUser([
    'access toolbar',
  ]);
}