function NodeRssCacheTest::setUp
Same name in other branches
- 11.x core/modules/node/tests/src/Functional/NodeRssCacheTest.php \Drupal\Tests\node\Functional\NodeRssCacheTest::setUp()
Overrides NodeTestBase::setUp
File
-
core/
modules/ node/ tests/ src/ Functional/ NodeRssCacheTest.php, line 38
Class
- NodeRssCacheTest
- Ensures that RSS render cache doesn't interfere with other caches.
Namespace
Drupal\Tests\node\FunctionalCode
protected function setUp() : void {
parent::setUp();
ViewTestData::createTestViews(static::class, [
'node_test_views',
]);
// 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.