protected function NodeTest::setUp in Workbench Moderation to Content Moderation 8.2
Same name in this branch
- 8.2 tests/src/Functional/NodeTest.php \Drupal\Tests\wbm2cm\Functional\NodeTest::setUp()
- 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\MigrationCode
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();
}