You are here

protected function NodeAccessMenuLinkTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php \Drupal\Tests\node\Functional\NodeAccessMenuLinkTest::setUp()

Overrides NodeTestBase::setUp

File

core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php, line 33

Class

NodeAccessMenuLinkTest
Tests the interaction of the node access system with menu links.

Namespace

Drupal\Tests\node\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalPlaceBlock('system_menu_block:main');
  $this->contentAdminUser = $this
    ->drupalCreateUser([
    'access content',
    'administer content types',
    'administer menu',
  ]);
  $this
    ->config('user.role.' . RoleInterface::ANONYMOUS_ID)
    ->set('permissions', [])
    ->save();
}