function NodeLegacyTest::setUp

Overrides EntityKernelTestBase::setUp

File

core/modules/node/tests/src/Kernel/NodeLegacyTest.php, line 29

Class

NodeLegacyTest
Tests legacy user functionality.

Namespace

Drupal\Tests\node\Kernel

Code

protected function setUp() {
    parent::setUp();
    // Create the node bundles required for testing.
    $type = NodeType::create([
        'type' => 'page',
        'name' => 'page',
    ]);
    $type->save();
    $this->installSchema('node', 'node_access');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.