function HistoryTest::setUp
Same name in other branches
- 9 core/modules/history/tests/src/Functional/HistoryTest.php \Drupal\Tests\history\Functional\HistoryTest::setUp()
- 8.9.x core/modules/history/tests/src/Functional/HistoryTest.php \Drupal\Tests\history\Functional\HistoryTest::setUp()
- 11.x core/modules/history/tests/src/Functional/HistoryTest.php \Drupal\Tests\history\Functional\HistoryTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ history/ tests/ src/ Functional/ HistoryTest.php, line 48
Class
- HistoryTest
- Tests the History endpoints.
Namespace
Drupal\Tests\history\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this->user = $this->drupalCreateUser([
'create page content',
'edit own page content',
'access content',
]);
$this->drupalLogin($this->user);
$this->testNode = $this->drupalCreateNode([
'type' => 'page',
'uid' => $this->user
->id(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.