protected function NodeLegacyTest::setUp in Drupal 8
Overrides EntityKernelTestBase::setUp
File
- core/
modules/ node/ tests/ src/ Kernel/ NodeLegacyTest.php, line 29
Class
- NodeLegacyTest
- Tests legacy user functionality.
Namespace
Drupal\Tests\node\KernelCode
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');
}