NodeTest.php in Workbench Moderation to Content Moderation 8.2
File
tests/src/Kernel/Migration/NodeTest.php
View source
<?php
namespace Drupal\Tests\wbm2cm\Kernel\Migration;
use Drupal\Tests\node\Traits\ContentTypeCreationTrait;
class NodeTest extends TestBase {
use ContentTypeCreationTrait;
protected static $modules = [
'field',
'filter',
'node',
'text',
];
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();
}
}
Classes
Name |
Description |
NodeTest |
Tests the save-clear-restore migration flow for nodes. |