You are here

public function EntityReferenceRevisionsDeriverTest::testDestinationDeriver in Entity Reference Revisions 8

Tests deriver.

@covers ::getDerivativeDefinitions

File

tests/src/Kernel/Plugin/Derivative/EntityReferenceRevisionsDeriverTest.php, line 35

Class

EntityReferenceRevisionsDeriverTest
Tests the migration deriver.

Namespace

Drupal\Tests\entity_reference_revisions\Kernel\Plugin\Derivative

Code

public function testDestinationDeriver() {

  /** @var MigrateDestinationPluginManager $migrationDestinationManager */
  $migrationDestinationManager = \Drupal::service('plugin.manager.migrate.destination');
  $destination = $migrationDestinationManager
    ->getDefinition('entity_reference_revisions:entity_test_composite');
  $this
    ->assertEquals(EntityReferenceRevisions::class, $destination['class']);
}