function ReEnableModuleFieldTest::setUp

Same name in other branches
  1. 9 core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php \Drupal\Tests\field\Functional\ReEnableModuleFieldTest::setUp()
  2. 8.9.x core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php \Drupal\Tests\field\Functional\ReEnableModuleFieldTest::setUp()
  3. 10 core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php \Drupal\Tests\field\Functional\ReEnableModuleFieldTest::setUp()

Overrides BrowserTestBase::setUp

File

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

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',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.