updated core to 8.6.3
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
id: d6_field_instance_label_description_translation
|
||||
label: Field label and description translation
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: d6_field_instance_label_description_translation
|
||||
constants:
|
||||
entity_type: node
|
||||
process:
|
||||
langcode:
|
||||
plugin: skip_on_empty
|
||||
source: language
|
||||
method: row
|
||||
translation:
|
||||
plugin: skip_on_empty
|
||||
source: translation
|
||||
method: row
|
||||
field_name_parts:
|
||||
plugin: explode
|
||||
source: objectid
|
||||
delimiter: '-'
|
||||
field_name:
|
||||
plugin: extract
|
||||
source: '@field_name_parts'
|
||||
index:
|
||||
- 1
|
||||
bundle:
|
||||
plugin: extract
|
||||
source: '@field_name_parts'
|
||||
index:
|
||||
- 0
|
||||
exists:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d6_field_instance
|
||||
source:
|
||||
- '@field_name'
|
||||
- '@bundle'
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
entity_type: 'constants/entity_type'
|
||||
property:
|
||||
plugin: static_map
|
||||
source: property
|
||||
bypass: true
|
||||
map:
|
||||
widget_label: label
|
||||
widget_description: description
|
||||
destination:
|
||||
plugin: entity:field_config
|
||||
translations: true
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d6_field_instance
|
||||
@@ -0,0 +1,178 @@
|
||||
id: d6_field_instance_option_translation
|
||||
label: Field instance option configuration translation
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: d6_field_instance_option_translation
|
||||
skip_count: true
|
||||
constants:
|
||||
entity_type: node
|
||||
property: settings
|
||||
process:
|
||||
# We skip field types that don't exist because they weren't migrated by the
|
||||
# field migration.
|
||||
field_type_exists:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d6_field
|
||||
source:
|
||||
- objectid
|
||||
-
|
||||
plugin: extract
|
||||
index:
|
||||
- 1
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
# Use the process from d6_field to determine the field type.
|
||||
type:
|
||||
plugin: field_type
|
||||
source:
|
||||
- type
|
||||
- widget_type
|
||||
map:
|
||||
userreference:
|
||||
userreference_select: entity_reference
|
||||
userreference_buttons: entity_reference
|
||||
userreference_autocomplete: entity_reference
|
||||
nodereference:
|
||||
nodereference_select: entity_reference
|
||||
number_integer:
|
||||
number: integer
|
||||
optionwidgets_select: list_integer
|
||||
optionwidgets_buttons: list_integer
|
||||
optionwidgets_onoff: boolean
|
||||
number_decimal:
|
||||
number: decimal
|
||||
optionwidgets_select: list_float
|
||||
optionwidgets_buttons: list_float
|
||||
optionwidgets_onoff: boolean
|
||||
number_float:
|
||||
number: float
|
||||
optionwidgets_select: list_float
|
||||
optionwidgets_buttons: list_float
|
||||
optionwidgets_onoff: boolean
|
||||
email:
|
||||
email_textfield: email
|
||||
filefield:
|
||||
imagefield_widget: image
|
||||
filefield_widget: file
|
||||
fr_phone:
|
||||
phone_textfield: telephone
|
||||
be_phone:
|
||||
phone_textfield: telephone
|
||||
it_phone:
|
||||
phone_textfield: telephone
|
||||
el_phone:
|
||||
phone_textfield: telephone
|
||||
ch_phone:
|
||||
phone_textfield: telephone
|
||||
ca_phone:
|
||||
phone_textfield: telephone
|
||||
cr_phone:
|
||||
phone_textfield: telephone
|
||||
pa_phone:
|
||||
phone_textfield: telephone
|
||||
gb_phone:
|
||||
phone_textfield: telephone
|
||||
ru_phone:
|
||||
phone_textfield: telephone
|
||||
ua_phone:
|
||||
phone_textfield: telephone
|
||||
es_phone:
|
||||
phone_textfield: telephone
|
||||
au_phone:
|
||||
phone_textfield: telephone
|
||||
cs_phone:
|
||||
phone_textfield: telephone
|
||||
hu_phone:
|
||||
phone_textfield: telephone
|
||||
pl_phone:
|
||||
phone_textfield: telephone
|
||||
nl_phone:
|
||||
phone_textfield: telephone
|
||||
se_phone:
|
||||
phone_textfield: telephone
|
||||
za_phone:
|
||||
phone_textfield: telephone
|
||||
il_phone:
|
||||
phone_textfield: telephone
|
||||
nz_phone:
|
||||
phone_textfield: telephone
|
||||
br_phone:
|
||||
phone_textfield: telephone
|
||||
cl_phone:
|
||||
phone_textfield: telephone
|
||||
cn_phone:
|
||||
phone_textfield: telephone
|
||||
hk_phone:
|
||||
phone_textfield: telephone
|
||||
mo_phone:
|
||||
phone_textfield: telephone
|
||||
ph_phone:
|
||||
phone_textfield: telephone
|
||||
sg_phone:
|
||||
phone_textfield: telephone
|
||||
jo_phone:
|
||||
phone_textfield: telephone
|
||||
eg_phone:
|
||||
phone_textfield: telephone
|
||||
pk_phone:
|
||||
phone_textfield: telephone
|
||||
int_phone:
|
||||
phone_textfield: telephone
|
||||
boolean_type:
|
||||
-
|
||||
plugin: static_map
|
||||
source: '@type'
|
||||
map:
|
||||
boolean: boolean
|
||||
default_value: false
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
bundle:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d6_node_type
|
||||
source: type_name
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
langcode:
|
||||
plugin: skip_on_empty
|
||||
source: language
|
||||
method: row
|
||||
field_name: objectid
|
||||
entity_type: 'constants/entity_type'
|
||||
results:
|
||||
plugin: d6_field_instance_option_translation
|
||||
source:
|
||||
- '@type'
|
||||
- global_settings
|
||||
translation:
|
||||
-
|
||||
plugin: extract
|
||||
source: '@results'
|
||||
index: [1]
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
property:
|
||||
-
|
||||
plugin: extract
|
||||
source: '@results'
|
||||
index: [0]
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
destination:
|
||||
plugin: entity:field_config
|
||||
translations: true
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d6_node_type
|
||||
- d6_field_instance
|
||||
- d6_field_option_translation
|
||||
@@ -0,0 +1,144 @@
|
||||
id: d6_field_option_translation
|
||||
label: Field option configuration translation
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: d6_field_option_translation
|
||||
skip_count: true
|
||||
constants:
|
||||
entity_type: node
|
||||
allowed_values: settings
|
||||
process:
|
||||
entity_type: 'constants/entity_type'
|
||||
status: active
|
||||
langcode:
|
||||
plugin: skip_on_empty
|
||||
source: language
|
||||
method: row
|
||||
field_name: objectid
|
||||
# Use the process from d6_field to determine the field type.
|
||||
type:
|
||||
plugin: field_type
|
||||
source:
|
||||
- type
|
||||
- widget_type
|
||||
map:
|
||||
userreference:
|
||||
userreference_select: entity_reference
|
||||
userreference_buttons: entity_reference
|
||||
userreference_autocomplete: entity_reference
|
||||
nodereference:
|
||||
nodereference_select: entity_reference
|
||||
number_integer:
|
||||
number: integer
|
||||
optionwidgets_select: list_integer
|
||||
optionwidgets_buttons: list_integer
|
||||
optionwidgets_onoff: boolean
|
||||
number_decimal:
|
||||
number: decimal
|
||||
optionwidgets_select: list_float
|
||||
optionwidgets_buttons: list_float
|
||||
optionwidgets_onoff: boolean
|
||||
number_float:
|
||||
number: float
|
||||
optionwidgets_select: list_float
|
||||
optionwidgets_buttons: list_float
|
||||
optionwidgets_onoff: boolean
|
||||
email:
|
||||
email_textfield: email
|
||||
filefield:
|
||||
imagefield_widget: image
|
||||
filefield_widget: file
|
||||
fr_phone:
|
||||
phone_textfield: telephone
|
||||
be_phone:
|
||||
phone_textfield: telephone
|
||||
it_phone:
|
||||
phone_textfield: telephone
|
||||
el_phone:
|
||||
phone_textfield: telephone
|
||||
ch_phone:
|
||||
phone_textfield: telephone
|
||||
ca_phone:
|
||||
phone_textfield: telephone
|
||||
cr_phone:
|
||||
phone_textfield: telephone
|
||||
pa_phone:
|
||||
phone_textfield: telephone
|
||||
gb_phone:
|
||||
phone_textfield: telephone
|
||||
ru_phone:
|
||||
phone_textfield: telephone
|
||||
ua_phone:
|
||||
phone_textfield: telephone
|
||||
es_phone:
|
||||
phone_textfield: telephone
|
||||
au_phone:
|
||||
phone_textfield: telephone
|
||||
cs_phone:
|
||||
phone_textfield: telephone
|
||||
hu_phone:
|
||||
phone_textfield: telephone
|
||||
pl_phone:
|
||||
phone_textfield: telephone
|
||||
nl_phone:
|
||||
phone_textfield: telephone
|
||||
se_phone:
|
||||
phone_textfield: telephone
|
||||
za_phone:
|
||||
phone_textfield: telephone
|
||||
il_phone:
|
||||
phone_textfield: telephone
|
||||
nz_phone:
|
||||
phone_textfield: telephone
|
||||
br_phone:
|
||||
phone_textfield: telephone
|
||||
cl_phone:
|
||||
phone_textfield: telephone
|
||||
cn_phone:
|
||||
phone_textfield: telephone
|
||||
hk_phone:
|
||||
phone_textfield: telephone
|
||||
mo_phone:
|
||||
phone_textfield: telephone
|
||||
ph_phone:
|
||||
phone_textfield: telephone
|
||||
sg_phone:
|
||||
phone_textfield: telephone
|
||||
jo_phone:
|
||||
phone_textfield: telephone
|
||||
eg_phone:
|
||||
phone_textfield: telephone
|
||||
pk_phone:
|
||||
phone_textfield: telephone
|
||||
int_phone:
|
||||
phone_textfield: telephone
|
||||
results:
|
||||
plugin: d6_field_option_translation
|
||||
source:
|
||||
- '@type'
|
||||
- global_settings
|
||||
translation:
|
||||
-
|
||||
plugin: extract
|
||||
source: '@results'
|
||||
index: [1]
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
property:
|
||||
-
|
||||
plugin: extract
|
||||
source: '@results'
|
||||
index: [0]
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: row
|
||||
destination:
|
||||
plugin: entity:field_storage_config
|
||||
translations: true
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d6_field
|
||||
@@ -5,7 +5,7 @@ migration_tags:
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: variable_translation
|
||||
plugin: d6_variable_translation
|
||||
variables:
|
||||
- site_offline_message
|
||||
source_module: i18n
|
||||
|
||||
@@ -5,7 +5,7 @@ migration_tags:
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: variable_translation
|
||||
plugin: d6_variable_translation
|
||||
constants:
|
||||
slash: '/'
|
||||
variables:
|
||||
|
||||
@@ -5,7 +5,7 @@ migration_tags:
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: variable_translation
|
||||
plugin: d6_variable_translation
|
||||
variables:
|
||||
- user_mail_status_activated_subject
|
||||
- user_mail_status_activated_body
|
||||
|
||||
@@ -5,7 +5,7 @@ migration_tags:
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: variable_translation
|
||||
plugin: d6_variable_translation
|
||||
variables:
|
||||
- user_mail_status_blocked_notify
|
||||
- user_mail_status_activated_notify
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
id: d7_system_maintenance_translation
|
||||
label: Maintenance page configuration
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: d7_variable_translation
|
||||
variables:
|
||||
- maintenance_mode_message
|
||||
process:
|
||||
langcode: language
|
||||
message: maintenance_mode_message
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: system.maintenance
|
||||
translations: true
|
||||
@@ -0,0 +1,27 @@
|
||||
id: d7_system_site_translation
|
||||
label: Site configuration translation
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: d7_variable_translation
|
||||
variables:
|
||||
- site_name
|
||||
- site_mail
|
||||
- site_slogan
|
||||
- site_frontpage
|
||||
- site_403
|
||||
- site_404
|
||||
process:
|
||||
langcode: language
|
||||
name: site_name
|
||||
mail: site_mail
|
||||
slogan: site_slogan
|
||||
'page/front': site_frontpage
|
||||
'page/403': site_403
|
||||
'page/404': site_404
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: system.site
|
||||
translations: true
|
||||
@@ -0,0 +1,79 @@
|
||||
id: d7_user_mail_translation
|
||||
label: User mail configuration translation
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: d7_variable_translation
|
||||
variables:
|
||||
- user_mail_cancel_confirm_subject
|
||||
- user_mail_cancel_confirm_body
|
||||
- user_mail_password_reset_subject
|
||||
- user_mail_password_reset_body
|
||||
- user_mail_register_admin_created_subject
|
||||
- user_mail_register_admin_created_body
|
||||
- user_mail_register_no_approval_required_subject
|
||||
- user_mail_register_no_approval_required_body
|
||||
- user_mail_register_pending_approval_subject
|
||||
- user_mail_register_pending_approval_body
|
||||
- user_mail_status_activated_subject
|
||||
- user_mail_status_activated_body
|
||||
- user_mail_status_blocked_subject
|
||||
- user_mail_status_blocked_body
|
||||
- user_mail_status_canceled_subject
|
||||
- user_mail_status_canceled_body
|
||||
process:
|
||||
langcode: language
|
||||
'cancel_confirm/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_cancel_confirm_subject
|
||||
'cancel_confirm/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_cancel_confirm_body
|
||||
'password_reset/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_password_reset_subject
|
||||
'password_reset/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_password_reset_body
|
||||
'register_admin_created/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_register_admin_created_subject
|
||||
'register_admin_created/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_register_admin_created_body
|
||||
'register_no_approval_required/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_register_no_approval_required_subject
|
||||
'register_no_approval_required/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_register_no_approval_required_body
|
||||
'register_pending_approval/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_register_pending_approval_subject
|
||||
'register_pending_approval/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_register_pending_approval_body
|
||||
'status_activated/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_status_activated_subject
|
||||
'status_activated/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_status_activated_body
|
||||
'status_blocked/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_status_blocked_subject
|
||||
'status_blocked/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_status_blocked_body
|
||||
'status_canceled/subject':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_status_canceled_subject
|
||||
'status_canceled/body':
|
||||
plugin: convert_tokens
|
||||
source: user_mail_status_canceled_body
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: user.mail
|
||||
translations: true
|
||||
@@ -0,0 +1,17 @@
|
||||
id: d7_user_settings_translation
|
||||
label: User settings configuration translation
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Configuration
|
||||
- Multilingual
|
||||
source:
|
||||
plugin: d7_variable_translation
|
||||
variables:
|
||||
- anonymous
|
||||
process:
|
||||
langcode: language
|
||||
anonymous: anonymous
|
||||
destination:
|
||||
plugin: config
|
||||
config_name: user.settings
|
||||
translations: true
|
||||
@@ -23,7 +23,7 @@ interface ElementInterface {
|
||||
public static function create(TypedDataInterface $schema);
|
||||
|
||||
/**
|
||||
* Builds a render array containg the source and translation form elements.
|
||||
* Builds a render array containing the source and translation form elements.
|
||||
*
|
||||
* @param \Drupal\Core\Language\LanguageInterface $source_language
|
||||
* The source language of the configuration object.
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\Tests\config_translation\Kernel\Migrate\d7;
|
||||
|
||||
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
|
||||
|
||||
/**
|
||||
* Tests migrations of i18n maintenance variable.
|
||||
*
|
||||
* @group migrate_drupal_7
|
||||
*/
|
||||
class MigrateSystemMaintenanceTranslationTest extends MigrateDrupal7TestBase {
|
||||
|
||||
public static $modules = [
|
||||
'language',
|
||||
'config_translation',
|
||||
// Required for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->executeMigration('d7_system_maintenance_translation');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests migrations of i18n maintenance variable.
|
||||
*/
|
||||
public function testSystemMaintenance() {
|
||||
$config = \Drupal::service('language_manager')->getLanguageConfigOverride('is', 'system.maintenance');
|
||||
$this->assertSame('is - This is a custom maintenance mode message.', $config->get('message'));
|
||||
}
|
||||
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\Tests\config_translation\Kernel\Migrate\d7;
|
||||
|
||||
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
|
||||
|
||||
/**
|
||||
* Migrate multilingual site variables.
|
||||
*
|
||||
* @group migrate_drupal_7
|
||||
*/
|
||||
class MigrateSystemSiteTranslationTest extends MigrateDrupal7TestBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static $modules = [
|
||||
'language',
|
||||
'config_translation',
|
||||
// Required for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->executeMigration('d7_system_site_translation');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests migration of system (site) variables to system.site.yml.
|
||||
*/
|
||||
public function testSystemSite() {
|
||||
$language_manager = \Drupal::service('language_manager');
|
||||
$config_translation = $language_manager->getLanguageConfigOverride('fr', 'system.site');
|
||||
$this->assertSame('The Site Name', $config_translation->get('name'));
|
||||
$this->assertSame('fr - The Slogan', $config_translation->get('slogan'));
|
||||
$this->assertSame('node', $config_translation->get('page.403'));
|
||||
$this->assertSame('node', $config_translation->get('page.404'));
|
||||
$this->assertSame('node', $config_translation->get('page.front'));
|
||||
$this->assertSame(NULL, $config_translation->get('admin_compact_mode'));
|
||||
|
||||
$config_translation = $language_manager->getLanguageConfigOverride('is', 'system.site');
|
||||
$this->assertSame('is - The Site Name', $config_translation->get('name'));
|
||||
$this->assertSame('is - The Slogan', $config_translation->get('slogan'));
|
||||
$this->assertSame('node/1', $config_translation->get('page.403'));
|
||||
$this->assertSame('node/6', $config_translation->get('page.404'));
|
||||
$this->assertSame('node/4', $config_translation->get('page.front'));
|
||||
$this->assertNULL($config_translation->get('admin_compact_mode'));
|
||||
}
|
||||
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\Tests\config_translation\Kernel\Migrate\d7;
|
||||
|
||||
use Drupal\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
|
||||
|
||||
/**
|
||||
* Test migration of i18n user variables.
|
||||
*
|
||||
* @group migrate_drupal_7
|
||||
*/
|
||||
class MigrateUserConfigsTranslationTest extends MigrateDrupal7TestBase {
|
||||
|
||||
use SchemaCheckTestTrait;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static $modules = [
|
||||
'language',
|
||||
'locale',
|
||||
'config_translation',
|
||||
// Required for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->installSchema('locale', [
|
||||
'locales_source',
|
||||
'locales_target',
|
||||
'locales_location',
|
||||
]);
|
||||
$this->executeMigrations([
|
||||
'd7_user_mail_translation',
|
||||
'd7_user_settings_translation',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests migration of i18n user variables to user.mail and user.settings.
|
||||
*/
|
||||
public function testUserConfig() {
|
||||
// Tests migration of i18n user variables to user.mail.yml.
|
||||
$language_manager = \Drupal::service('language_manager');
|
||||
$config = $language_manager->getLanguageConfigOverride('is', 'user.mail');
|
||||
$this->assertSame('is - Are you sure?', $config->get('cancel_confirm.subject'));
|
||||
$this->assertSame('is - A little birdie said you wanted to cancel your account.', $config->get('cancel_confirm.body'));
|
||||
$this->assertSame('is - Fix your password', $config->get('password_reset.subject'));
|
||||
$this->assertSame("is - Nope! You're locked out forever.", $config->get('password_reset.body'));
|
||||
$this->assertSame('is - Gawd made you an account', $config->get('register_admin_created.subject'));
|
||||
$this->assertSame("is - ...and she could take it away.\r\n[site:name], [site:url]", $config->get('register_admin_created.body'));
|
||||
$this->assertSame('is - Welcome!', $config->get('register_no_approval_required.subject'));
|
||||
$this->assertSame('is - You can now log in if you can figure out how to use Drupal!', $config->get('register_no_approval_required.body'));
|
||||
$this->assertSame('is - Soon...', $config->get('register_pending_approval.subject'));
|
||||
$this->assertSame('is - ...you will join our Circle. Let the Drupal flow through you.', $config->get('register_pending_approval.body'));
|
||||
$this->assertSame('is - Your account is approved!', $config->get('status_activated.subject'));
|
||||
$this->assertSame('is - Your account was activated, and there was much rejoicing.', $config->get('status_activated.body'));
|
||||
$this->assertSame('is - BEGONE!', $config->get('status_blocked.subject'));
|
||||
$this->assertSame('is - You no longer please the robot overlords. Go to your room and chill out.', $config->get('status_blocked.body'));
|
||||
$this->assertSame('is - So long, bub', $config->get('status_canceled.subject'));
|
||||
$this->assertSame('is - The gates of Drupal are closed to you. Now you will work in the salt mines.', $config->get('status_canceled.body'));
|
||||
$this->assertConfigSchema(\Drupal::service('config.typed'), 'user.mail', $config->get());
|
||||
|
||||
// Tests migration of i18n user variables to user.settings.yml.
|
||||
$config = $language_manager->getLanguageConfigOverride('is', 'user.settings');
|
||||
$this->assertSame('is - anonymous', $config->get('anonymous'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user