diff --git a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateLanguageTest.php b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateLanguageTest.php index c60df70..9acbbaa 100644 --- a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateLanguageTest.php +++ b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateLanguageTest.php @@ -38,10 +38,11 @@ public function setUp() { drupal_get_path('module', 'migrate_drupal') . '/lib/Drupal/migrate_drupal/Tests/Dump/Drupal6Language.php', ); $this->prepare($migration, $dumps); - $executable = new MigrateExecutable($migration, new MigrateMessage()); + $executable = new MigrateExecutable($migration, $this); $executable->import(); - drupal_static_reset('language_list'); + // ToDo: the language module should take care of clearing caches. See https://drupal.org/node/2234623 + \Drupal::languageManager()->reset(); } function testLanguage() {