public function MigrateUserConfigsTranslationTest::testUserSettings in Drupal 8
Tests migration of i18n user variables to user.settings.yml.
File
- core/
modules/ config_translation/ tests/ src/ Kernel/ Migrate/ d6/ MigrateUserConfigsTranslationTest.php, line 63
Class
- MigrateUserConfigsTranslationTest
- Upgrade i18n variables to user.*.yml.
Namespace
Drupal\Tests\config_translation\Kernel\Migrate\d6Code
public function testUserSettings() {
$config = \Drupal::service('language_manager')
->getLanguageConfigOverride('fr', 'user.settings');
$this
->assertIdentical(1, $config
->get('notify.status_blocked'));
$this
->assertIdentical(0, $config
->get('notify.status_activated'));
$this
->assertIdentical(0, $config
->get('verify_mail'));
$this
->assertIdentical('admin_only', $config
->get('register'));
$this
->assertIdentical('fr Guest', $config
->get('anonymous'));
$config = \Drupal::service('language_manager')
->getLanguageConfigOverride('zu', 'user.settings');
$this
->assertIdentical(1, $config
->get('notify.status_blocked'));
$this
->assertIdentical(0, $config
->get('notify.status_activated'));
$this
->assertIdentical(0, $config
->get('verify_mail'));
$this
->assertIdentical('admin_only', $config
->get('register'));
$this
->assertIdentical('Guest', $config
->get('anonymous'));
}