Skip to content
Snippets Groups Projects

Resolve #3337900 "Deprecate locale system"

Closes #3337900

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
6
7 use Drupal\Core\DependencyInjection\ContainerBuilder;
8 use Drupal\Core\Language\Language;
9 use Drupal\KernelTests\KernelTestBase;
10 use Drupal\language\Entity\ConfigurableLanguage;
11
12 /**
13 * Tests legacy locale module code.
14 *
15 * @group locale
16 * @group legacy
17 */
18 class LocaleLegacyTest extends KernelTestBase {
19
20 /**
21 * The modules to enable for this test.
  • 36 $language['name'] = 'Hungarian';
    37 $container->setParameter('language.default_values', $language);
    38 }
    39
    40 /**
    41 * {@inheritdoc}
    42 */
    43 protected function setUp(): void {
    44 parent::setUp();
    45 ConfigurableLanguage::createFromLangcode('hu')->save();
    46 $this->installSchema('locale', ['locales_source', 'locales_target', 'locales_location']);
    47 $this->installConfig(['locale_test']);
    48 }
    49
    50 /**
    51 * Tests locale_system_set_config_langcodes().
  • 209 209
    210 210 /**
    211 211 * Updates default configuration when new modules or themes are installed.
    212 *
    213 * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use
  • 127 127 // Install configs.
    128 128 $this->installConfig(['language', 'locale', 'user']);
    129 129
    130 locale_system_set_config_langcodes();
  • Prem Suthar added 1 commit

    added 1 commit

    • 2abf5263 - Update the MR as per requested changes.

    Compare with previous version

  • Prem Suthar added 1 commit

    added 1 commit

    • 97dde1e7 - Update the test function documention.

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading