You are here

public function MigrateNodeDeriverTest::testTranslations in Drupal 9

Same name in this branch
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeDeriverTest::testTranslations()
  2. 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeDeriverTest::testTranslations()
Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeDeriverTest::testTranslations()

Tests node translation migrations with translation enabled.

File

core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php, line 41

Class

MigrateNodeDeriverTest
Test D6NodeDeriver.

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

Code

public function testTranslations() {

  // With content_translation, there should be translation migrations for
  // each content type.
  $this
    ->enableModules([
    'language',
    'content_translation',
  ]);
  $this
    ->assertTrue($this->container
    ->get('plugin.manager.migration')
    ->hasDefinition('d6_node_translation:story'), "Node translation migrations exist after content_translation installed");
}