You are here

protected function LinkClassWidgetTest::setUp in Link class 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/LinkClassWidgetTest.php \Drupal\Tests\link_class\Functional\LinkClassWidgetTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/LinkClassWidgetTest.php, line 83

Class

LinkClassWidgetTest
Tests link_class field widgets.

Namespace

Drupal\Tests\link_class\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
  ]);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'view test entity',
    'administer content types',
    'administer node fields',
    'administer node form display',
    'administer node display',
    'administer nodes',
    'edit any article content',
  ]));
}