You are here

protected function ReEnableModuleFieldTest::setUp in Drupal 10

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

File

core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php, line 37

Class

ReEnableModuleFieldTest
Tests the behavior of a field module after being disabled and re-enabled.

Namespace

Drupal\Tests\field\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
  ]);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'create article content',
    'edit own article content',
  ]));
}