function ShortcutLinksTest::setUp

Same name and namespace in other branches
  1. 9 core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php \Drupal\Tests\shortcut\Functional\ShortcutLinksTest::setUp()
  2. 8.9.x core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php \Drupal\Tests\shortcut\Functional\ShortcutLinksTest::setUp()
  3. 10 core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php \Drupal\Tests\shortcut\Functional\ShortcutLinksTest::setUp()

Overrides ShortcutTestBase::setUp

File

core/modules/shortcut/tests/src/Functional/ShortcutLinksTest.php, line 47

Class

ShortcutLinksTest
Create, view, edit, delete, and change shortcut links.

Namespace

Drupal\Tests\shortcut\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->adminUser = $this->drupalCreateUser([
        'access toolbar',
        'administer shortcuts',
        'view the administration theme',
        'access content overview',
        'administer users',
        'administer site configuration',
        'administer content types',
        'create article content',
        'create page content',
        'edit any article content',
        'edit any page content',
        'administer blocks',
        'access shortcuts',
    ]);
    $this->drupalPlaceBlock('page_title_block');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.