diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php index f555c04..46ca5b2 100644 --- a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php +++ b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php @@ -8,10 +8,10 @@ namespace Drupal\locale\Tests; use Drupal\simpletest\WebTestBase; -use Drupal\core\language\languageInterface; +use Drupal\language\Entity\ConfigurableLanguage; /** - * Tests translation of configuration strings. + * Tests translation update's effects on configuration translations. * * @group locale */ @@ -40,14 +40,13 @@ protected function setUp() { } /** - * Tests configuration translation import when locale module is enabled after - * a language was added. + * Test update changes configuration translations if enabled after language. */ public function testConfigTranslationImport() { // Add a language. The Afrikaans translation file of locale_test_translate // (test.af.po) has been prepared with a configuration translation. - \Drupal\language\Entity\ConfigurableLanguage::createFromLangcode('af')->save(); + ConfigurableLanguage::createFromLangcode('af')->save(); // Enable locale module. $this->container->get('module_handler')->install(array('locale')); @@ -59,7 +58,7 @@ public function testConfigTranslationImport() { ->set('translation.import_enabled', TRUE) ->save(); - // Add translation permissions now the locale module has been enabled. + // Add translation permissions now that the locale module has been enabled. $edit = array( 'authenticated[translate interface]' => 'translate interface', );