function DevelToolbarTest::setUp

Same name in other branches
  1. 4.x tests/src/Functional/DevelToolbarTest.php \Drupal\Tests\devel\Functional\DevelToolbarTest::setUp()

Overrides DevelBrowserTestBase::setUp

File

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

Class

DevelToolbarTest
Tests devel toolbar module functionality.

Namespace

Drupal\Tests\devel\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalPlaceBlock('local_tasks_block');
    $this->drupalPlaceBlock('page_title_block');
    $this->develUser = $this->drupalCreateUser([
        'administer site configuration',
        'access devel information',
        'access toolbar',
        'switch users',
    ]);
    $this->toolbarUser = $this->drupalCreateUser([
        'access toolbar',
        'switch users',
    ]);
}