function MigrateNodeDeriverTest::testTranslations
Same name in this branch
- 11.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeDeriverTest::testTranslations()
Same name in other branches
- 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeDeriverTest::testTranslations()
- 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeDeriverTest::testTranslations()
- 8.9.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeDeriverTest::testTranslations()
- 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeDeriverTest::testTranslations()
- 10 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeDeriverTest::testTranslations()
- 10 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeDeriverTest::testTranslations()
Tests node translation migrations with translation enabled.
File
-
core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d6/ MigrateNodeDeriverTest.php, line 43
Class
- MigrateNodeDeriverTest
- Test D6NodeDeriver.
Namespace
Drupal\Tests\node\Kernel\Migrate\d6Code
public function testTranslations() : void {
// 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");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.