You are here

protected function NodeSyndicateBlockTest::setUp in Drupal 9

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

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);
}