You are here

protected function NodeAccessBaseTableTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php \Drupal\Tests\node\Functional\NodeAccessBaseTableTest::setUp()
  2. 9 core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php \Drupal\Tests\node\Functional\NodeAccessBaseTableTest::setUp()

File

core/modules/node/tests/src/Functional/NodeAccessBaseTableTest.php, line 68

Class

NodeAccessBaseTableTest
Tests behavior of the node access subsystem if the base table is not node.

Namespace

Drupal\Tests\node\Functional

Code

protected function setUp() : void {
  parent::setUp();
  node_access_test_add_field(NodeType::load('article'));
  node_access_rebuild();
  \Drupal::state()
    ->set('node_access_test.private', TRUE);
}