You are here

protected function NodeTest::setUp in Workbench Moderation to Content Moderation 8.2

Same name in this branch
  1. 8.2 tests/src/Functional/NodeTest.php \Drupal\Tests\wbm2cm\Functional\NodeTest::setUp()
  2. 8.2 tests/src/Kernel/Migration/NodeTest.php \Drupal\Tests\wbm2cm\Kernel\Migration\NodeTest::setUp()

Overrides TestBase::setUp

File

tests/src/Kernel/Migration/NodeTest.php, line 29

Class

NodeTest
Tests the save-clear-restore migration flow for nodes.

Namespace

Drupal\Tests\wbm2cm\Kernel\Migration

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig('node');
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
  $this->storage = $this->container
    ->get('entity_type.manager')
    ->getStorage('node');
  $this
    ->createContentType();
}