function NodeDeleteConfirmTest::setUp
Same name in other branches
- 10 core/modules/node/tests/src/FunctionalJavascript/NodeDeleteConfirmTest.php \Drupal\Tests\node\FunctionalJavascript\NodeDeleteConfirmTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ node/ tests/ src/ FunctionalJavascript/ NodeDeleteConfirmTest.php, line 30
Class
- NodeDeleteConfirmTest
- Tests JavaScript functionality specific to delete operations.
Namespace
Drupal\Tests\node\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->drupalCreateContentType([
'name' => 'Article',
'type' => 'article',
]);
$admin_user = $this->drupalCreateUser([
'access content',
'access content overview',
'administer content types',
'edit any article content',
'delete any article content',
]);
$this->drupalLogin($admin_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.