MigrateLocaleConfigsTest.php
Same filename and directory in other branches
- 10 core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php
- 11.x core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php
- 9 core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php
- 8.9.x core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php
Namespace
Drupal\Tests\locale\Kernel\MigrateFile
-
core/
modules/ locale/ tests/ src/ Kernel/ Migrate/ MigrateLocaleConfigsTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\locale\Kernel\Migrate;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use Drupal\Tests\SchemaCheckTestTrait;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
/**
* Upgrade variables to locale.settings.yml.
*/
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() : 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());
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| MigrateLocaleConfigsTest | Upgrade variables to locale.settings.yml. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.