function NodeSyndicateBlockTest::setUp

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

Overrides NodeTestBase::setUp

File

core/modules/node/tests/src/Functional/NodeSyndicateBlockTest.php, line 27

Class

NodeSyndicateBlockTest
Tests if the syndicate block is available.

Namespace

Drupal\Tests\node\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create a user and log in.
    $admin_user = $this->drupalCreateUser([
        'administer blocks',
    ]);
    $this->drupalLogin($admin_user);
}

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