function MigrateNodeDeriverTest::testTranslations
Test node translation migrations with translation enabled.
File
- 
              core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeDeriverTest.php, line 31  
Class
- MigrateNodeDeriverTest
 - Test D7NodeDeriver.
 
Namespace
Drupal\Tests\node\Kernel\Migrate\d7Code
public function testTranslations() {
  // With content_translation, there should be translation migrations for
  // each content type.
  $this->enableModules([
    'language',
    'content_translation',
    'filter',
  ]);
  $this->assertTrue($this->container
    ->get('plugin.manager.migration')
    ->hasDefinition('d7_node_translation:article'), "Node translation migrations exist after content_translation installed");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.