Mercurial > hg > isophonics-drupal-site
comparison core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
36 | 36 |
37 // Enable import of translations. By default this is disabled for automated | 37 // Enable import of translations. By default this is disabled for automated |
38 // tests. | 38 // tests. |
39 $this->config('locale.settings') | 39 $this->config('locale.settings') |
40 ->set('translation.import_enabled', TRUE) | 40 ->set('translation.import_enabled', TRUE) |
41 ->set('translation.use_source', LOCALE_TRANSLATION_USE_SOURCE_LOCAL) | |
41 ->save(); | 42 ->save(); |
42 | 43 |
43 // Add custom language. | 44 // Add custom language. |
44 $this->langcode = 'xx'; | 45 $this->langcode = 'xx'; |
45 $admin_user = $this->drupalCreateUser(['administer languages', 'access administration pages', 'translate interface', 'administer modules', 'access site-wide contact form', 'administer contact forms', 'administer site configuration']); | 46 $admin_user = $this->drupalCreateUser(['administer languages', 'access administration pages', 'translate interface', 'administer modules', 'access site-wide contact form', 'administer contact forms', 'administer site configuration']); |