You are here

public function MigrateLocaleConfigsTest::testLocaleSettings in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/locale/src/Tests/Migrate/MigrateLocaleConfigsTest.php \Drupal\locale\Tests\Migrate\MigrateLocaleConfigsTest::testLocaleSettings()

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

File

core/modules/locale/src/Tests/Migrate/MigrateLocaleConfigsTest.php, line 38
Contains \Drupal\locale\Tests\Migrate\MigrateLocaleConfigsTest.

Class

MigrateLocaleConfigsTest
Upgrade variables to locale.settings.yml.

Namespace

Drupal\locale\Tests\Migrate

Code

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