function 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\FormCode
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.