Update to Drupal 8.2.6. For more information, see https://www.drupal.org/project/drupal/releases/8.2.6
This commit is contained in:
parent
db56c09587
commit
f1e72395cb
588 changed files with 26857 additions and 2777 deletions
|
|
@ -69,6 +69,11 @@ function contact_entity_extra_field_info() {
|
|||
'weight' => -30,
|
||||
);
|
||||
}
|
||||
$fields['contact_message'][$bundle]['form']['preview'] = array(
|
||||
'label' => t('Preview sender message'),
|
||||
'description' => t('Preview'),
|
||||
'weight' => 40,
|
||||
);
|
||||
$fields['contact_message'][$bundle]['form']['copy'] = array(
|
||||
'label' => t('Send copy to sender'),
|
||||
'description' => t('Option'),
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ class ContactSitewideTest extends WebTestBase {
|
|||
'administer users',
|
||||
'administer account settings',
|
||||
'administer contact_message fields',
|
||||
'administer contact_message form display',
|
||||
]);
|
||||
$this->drupalLogin($admin_user);
|
||||
|
||||
|
|
@ -283,6 +284,10 @@ class ContactSitewideTest extends WebTestBase {
|
|||
$this->fieldUIAddNewField(NULL, $field_name, $field_label, 'text');
|
||||
$field_name = 'field_' . $field_name;
|
||||
|
||||
// Check preview field can be ordered.
|
||||
$this->drupalGet('admin/structure/contact/manage/' . $contact_form . '/form-display');
|
||||
$this->assertText(t('Preview'));
|
||||
|
||||
// Check that the field is displayed.
|
||||
$this->drupalGet('contact/' . $contact_form);
|
||||
$this->assertText($field_label);
|
||||
|
|
|
|||
Reference in a new issue