You are here

protected function EntityReferenceIntegrationTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php \Drupal\Tests\field\Functional\EntityReference\EntityReferenceIntegrationTest::setUp()
  2. 9 core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php \Drupal\Tests\field\Functional\EntityReference\EntityReferenceIntegrationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php, line 58

Class

EntityReferenceIntegrationTest
Tests various Entity reference UI components.

Namespace

Drupal\Tests\field\Functional\EntityReference

Code

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

  // Create a test user.
  $web_user = $this
    ->drupalCreateUser([
    'administer entity_test content',
    'administer entity_test fields',
    'view test entity',
  ]);
  $this
    ->drupalLogin($web_user);
}