You are here

public function SaveDeriverTest::testDeriver in Workbench Moderation to Content Moderation 8.2

File

tests/src/Kernel/Plugin/Deriver/SaveDeriverTest.php, line 30

Class

SaveDeriverTest
@covers \Drupal\wbm2cm\Plugin\Deriver\SaveDeriver @group wbm2cm

Namespace

Drupal\Tests\wbm2cm\Plugin\Deriver

Code

public function testDeriver() {
  $this->container
    ->get('state')
    ->set('moderation_entity_types', [
    'node',
  ]);
  $migration = $this->container
    ->get('plugin.manager.migration')
    ->getDefinition('wbm2cm_save:node');
  $this
    ->assertEquals('content_entity_revision:node', $migration['source']['plugin']);
}