You are here

protected function RebuildTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/system/tests/src/Functional/Form/RebuildTest.php \Drupal\Tests\system\Functional\Form\RebuildTest::setUp()
  2. 8 core/modules/system/tests/src/FunctionalJavascript/Form/RebuildTest.php \Drupal\Tests\system\FunctionalJavascript\Form\RebuildTest::setUp()
Same name and namespace in other branches
  1. 9 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 33

Class

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

Namespace

Drupal\Tests\system\Functional\Form

Code

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