protected function TrackerNodeAccessTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/tracker/tests/src/Functional/TrackerNodeAccessTest.php \Drupal\Tests\tracker\Functional\TrackerNodeAccessTest::setUp()
- 10 core/modules/tracker/tests/src/Functional/TrackerNodeAccessTest.php \Drupal\Tests\tracker\Functional\TrackerNodeAccessTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ tracker/ tests/ src/ Functional/ TrackerNodeAccessTest.php, line 36
Class
- TrackerNodeAccessTest
- Tests for private node access on /tracker.
Namespace
Drupal\Tests\tracker\FunctionalCode
protected function setUp() : void {
parent::setUp();
node_access_rebuild();
$this
->drupalCreateContentType([
'type' => 'page',
]);
node_access_test_add_field(NodeType::load('page'));
$this
->addDefaultCommentField('node', 'page', 'comment', CommentItemInterface::OPEN);
\Drupal::state()
->set('node_access_test.private', TRUE);
}