You are here

protected function EntityDisplayModeTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php \Drupal\Tests\field_ui\Functional\EntityDisplayModeTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php, line 32

Class

EntityDisplayModeTest
Tests the entity display modes UI.

Namespace

Drupal\Tests\field_ui\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Create a node type.
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->drupalPlaceBlock('page_title_block');
}