protected function NodeRSSContentTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Functional/NodeRSSContentTest.php \Drupal\Tests\node\Functional\NodeRSSContentTest::setUp()
Overrides NodeTestBase::setUp
File
- core/
modules/ node/ tests/ src/ Functional/ NodeRSSContentTest.php, line 30
Class
- NodeRSSContentTest
- Ensures that data added to nodes by other modules appears in RSS feeds.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Use bypass node access permission here, because the test class uses
// hook_grants_alter() to deny access to everyone on node_access
// queries.
$user = $this
->drupalCreateUser([
'bypass node access',
'access content',
'create article content',
]);
$this
->drupalLogin($user);
}