public static function MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter()
- 10 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentCommentSettingsNoEntityTranslationTest::migrateDumpAlter()
Allows tests to alter dumps after they have loaded.
Parameters
\Drupal\KernelTests\KernelTestBase $test: The test that is being run.
Overrides MigrateDumpAlterInterface::migrateDumpAlter
File
- core/
modules/ language/ tests/ src/ Kernel/ Migrate/ d7/ MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php, line 41
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();
}