function MigrateLocaleConfigsTest::testLocaleSettings

Same name and namespace in other branches
  1. 9 core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php \Drupal\Tests\locale\Kernel\Migrate\MigrateLocaleConfigsTest::testLocaleSettings()
  2. 8.9.x core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php \Drupal\Tests\locale\Kernel\Migrate\MigrateLocaleConfigsTest::testLocaleSettings()
  3. 10 core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php \Drupal\Tests\locale\Kernel\Migrate\MigrateLocaleConfigsTest::testLocaleSettings()

Tests migration of locale variables to locale.settings.yml.

File

core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php, line 35

Class

MigrateLocaleConfigsTest
Upgrade variables to <a href="/api/drupal/11.x/search/locale.settings.yml" title="Multiple implementations exist." class="local">locale.settings.yml</a>.

Namespace

Drupal\Tests\locale\Kernel\Migrate

Code

public function testLocaleSettings() : void {
    $config = $this->config('locale.settings');
    $this->assertTrue($config->get('cache_strings'));
    $this->assertSame('languages', $config->get('javascript.directory'));
    $this->assertConfigSchema(\Drupal::service('config.typed'), 'locale.settings', $config->get());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.