class MigrateLocaleConfigsTest

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

Upgrade variables to locale.settings.yml.

@group migrate_drupal_6

Hierarchy

Expanded class hierarchy of MigrateLocaleConfigsTest

File

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

Namespace

Drupal\Tests\locale\Kernel\Migrate
View source
class MigrateLocaleConfigsTest extends MigrateDrupal6TestBase {
  use SchemaCheckTestTrait;
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'locale',
    'language',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this->executeMigration('locale_settings');
  }
  
  /**
   * Tests migration of locale variables to locale.settings.yml.
   */
  public function testLocaleSettings() {
    $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.