You are here

protected function ExtraFieldDisplayUITest::setUp in Extra Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/ExtraFieldDisplayUITest.php \Drupal\Tests\extra_field\Functional\ExtraFieldDisplayUITest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ExtraFieldDisplayUITest.php, line 38

Class

ExtraFieldDisplayUITest
Tests the extra field Display on entity UI pages.

Namespace

Drupal\Tests\extra_field\Functional

Code

protected function setUp() {
  parent::setUp();
  $adminUser = $this
    ->drupalCreateUser([
    'administer node display',
  ]);
  $this
    ->drupalLogin($adminUser);
  $this->entityDisplay['first_node_type'] = $this
    ->setupContentEntityDisplay('first_node_type');
  $this->manageDisplayUrl['first_node_type'] = 'admin/structure/types/manage/first_node_type/display/teaser';
  $this->entityDisplay['another_node_type'] = $this
    ->setupContentEntityDisplay('another_node_type');
  $this->manageDisplayUrl['another_node_type'] = 'admin/structure/types/manage/another_node_type/display/teaser';
  $this
    ->setupEnableExtraFieldTestModule();
}