function RebuildTest::setUp

Same name in this branch
  1. 11.x core/modules/system/tests/src/FunctionalJavascript/Form/RebuildTest.php \Drupal\Tests\system\FunctionalJavascript\Form\RebuildTest::setUp()
Same name in other branches
  1. 9 core/modules/system/tests/src/FunctionalJavascript/Form/RebuildTest.php \Drupal\Tests\system\FunctionalJavascript\Form\RebuildTest::setUp()
  2. 9 core/modules/system/tests/src/Functional/Form/RebuildTest.php \Drupal\Tests\system\Functional\Form\RebuildTest::setUp()
  3. 8.9.x core/modules/system/tests/src/FunctionalJavascript/Form/RebuildTest.php \Drupal\Tests\system\FunctionalJavascript\Form\RebuildTest::setUp()
  4. 8.9.x core/modules/system/tests/src/Functional/Form/RebuildTest.php \Drupal\Tests\system\Functional\Form\RebuildTest::setUp()
  5. 10 core/modules/system/tests/src/FunctionalJavascript/Form/RebuildTest.php \Drupal\Tests\system\FunctionalJavascript\Form\RebuildTest::setUp()
  6. 10 core/modules/system/tests/src/Functional/Form/RebuildTest.php \Drupal\Tests\system\Functional\Form\RebuildTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Form/RebuildTest.php, line 36

Class

RebuildTest
Tests functionality of \Drupal\Core\Form\FormBuilderInterface::rebuildForm().

Namespace

Drupal\Tests\system\Functional\Form

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalCreateContentType([
        'type' => 'page',
        'name' => 'Basic page',
    ]);
    $this->webUser = $this->drupalCreateUser([
        'access content',
    ]);
    $this->drupalLogin($this->webUser);
}

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