You are here

protected function NodeOwnerTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Tests/NodeOwnerTest.php \Drupal\node\Tests\NodeOwnerTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides EntityUnitTestBase::setUp

File

core/modules/node/src/Tests/NodeOwnerTest.php, line 29
Contains \Drupal\node\Tests\NodeOwnerTest.

Class

NodeOwnerTest
Tests node owner functionality.

Namespace

Drupal\node\Tests

Code

protected function setUp() {
  parent::setUp();

  // Create the node bundles required for testing.
  $type = NodeType::create(array(
    'type' => 'page',
    'name' => 'page',
  ));
  $type
    ->save();

  // Enable two additional languages.
  ConfigurableLanguage::createFromLangcode('de')
    ->save();
  ConfigurableLanguage::createFromLangcode('it')
    ->save();
  $this
    ->installSchema('node', 'node_access');
}