function MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter
Same name in other branches
- 9 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter()
- 8.9.x core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter()
- 11.x core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter()
Overrides MigrateDumpAlterInterface::migrateDumpAlter
File
-
core/
modules/ language/ tests/ src/ Kernel/ Migrate/ d7/ MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php, line 47
Class
- MigrateLanguageContentCommentSettingsNoEntityTranslationTest
- Tests language content comment settings migration with no entity translation.
Namespace
Drupal\Tests\language\Kernel\Migrate\d7Code
public static function migrateDumpAlter(KernelTestBase $test) {
// Disable comment entity translation.
$db = Database::getConnection('default', 'migrate');
$db->update('variable')
->condition('name', 'entity_translation_entity_types')
->fields([
'value' => 'a:4:{s:4:"node";s:4:"node";s:13:"taxonomy_term";i:0;s:7:"comment";i:0;s:4:"user";i:0;}',
])
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.