function BlockRenderOrderTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/block/tests/src/Functional/BlockRenderOrderTest.php, line 30

Class

BlockRenderOrderTest
Tests blocks are being rendered in order by weight.

Namespace

Drupal\Tests\block\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create a test user.
    $end_user = $this->drupalCreateUser([
        'access content',
    ]);
    $this->drupalLogin($end_user);
}

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