Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -14,6 +14,7 @@ content:
|
|||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: -4
|
||||
region: content
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
|
@ -22,6 +23,7 @@ content:
|
|||
info:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
|
|
|
@ -13,9 +13,11 @@ mode: default
|
|||
content:
|
||||
author:
|
||||
weight: -2
|
||||
region: content
|
||||
comment_body:
|
||||
type: text_textarea
|
||||
weight: 11
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
|
@ -23,6 +25,7 @@ content:
|
|||
subject:
|
||||
type: string_textfield
|
||||
weight: 10
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
|
|
|
@ -21,6 +21,7 @@ content:
|
|||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: 1
|
||||
region: content
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
|
@ -29,16 +30,19 @@ content:
|
|||
comment:
|
||||
type: comment_default
|
||||
weight: 20
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_image:
|
||||
type: image_image
|
||||
weight: 4
|
||||
region: content
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
preview_image_style: thumbnail
|
||||
|
@ -46,11 +50,13 @@ content:
|
|||
field_tags:
|
||||
type: entity_reference_autocomplete_tags
|
||||
weight: 3
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
promote:
|
||||
|
@ -58,16 +64,19 @@ content:
|
|||
settings:
|
||||
display_label: true
|
||||
weight: 15
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 16
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
|
@ -75,6 +84,7 @@ content:
|
|||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
region: content
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
|
|
|
@ -15,6 +15,7 @@ content:
|
|||
body:
|
||||
type: text_textarea_with_summary
|
||||
weight: 31
|
||||
region: content
|
||||
settings:
|
||||
rows: 9
|
||||
summary_rows: 3
|
||||
|
@ -23,11 +24,13 @@ content:
|
|||
created:
|
||||
type: datetime_timestamp
|
||||
weight: 10
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
promote:
|
||||
|
@ -35,16 +38,19 @@ content:
|
|||
settings:
|
||||
display_label: true
|
||||
weight: 15
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
sticky:
|
||||
type: boolean_checkbox
|
||||
settings:
|
||||
display_label: true
|
||||
weight: 16
|
||||
region: content
|
||||
third_party_settings: { }
|
||||
title:
|
||||
type: string_textfield
|
||||
weight: -5
|
||||
region: content
|
||||
settings:
|
||||
size: 60
|
||||
placeholder: ''
|
||||
|
@ -52,6 +58,7 @@ content:
|
|||
uid:
|
||||
type: entity_reference_autocomplete
|
||||
weight: 5
|
||||
region: content
|
||||
settings:
|
||||
match_operator: CONTAINS
|
||||
size: 60
|
||||
|
|
|
@ -14,12 +14,16 @@ mode: default
|
|||
content:
|
||||
account:
|
||||
weight: -10
|
||||
region: content
|
||||
contact:
|
||||
weight: 5
|
||||
region: content
|
||||
language:
|
||||
weight: 0
|
||||
region: content
|
||||
timezone:
|
||||
weight: 6
|
||||
region: content
|
||||
user_picture:
|
||||
type: image_image
|
||||
settings:
|
||||
|
@ -27,4 +31,5 @@ content:
|
|||
preview_image_style: thumbnail
|
||||
third_party_settings: { }
|
||||
weight: -1
|
||||
region: content
|
||||
hidden: { }
|
||||
|
|
|
@ -15,6 +15,7 @@ content:
|
|||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
|
|
|
@ -15,8 +15,10 @@ content:
|
|||
label: hidden
|
||||
type: text_default
|
||||
weight: 0
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 100
|
||||
region: content
|
||||
hidden: { }
|
||||
|
|
|
@ -22,12 +22,14 @@ content:
|
|||
body:
|
||||
type: text_default
|
||||
weight: 0
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
comment:
|
||||
type: comment_default
|
||||
weight: 110
|
||||
region: content
|
||||
label: above
|
||||
settings:
|
||||
view_mode: default
|
||||
|
@ -36,6 +38,7 @@ content:
|
|||
field_image:
|
||||
type: image
|
||||
weight: -1
|
||||
region: content
|
||||
settings:
|
||||
image_style: large
|
||||
image_link: ''
|
||||
|
@ -44,12 +47,14 @@ content:
|
|||
field_tags:
|
||||
type: entity_reference_label
|
||||
weight: 10
|
||||
region: content
|
||||
label: above
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 100
|
||||
region: content
|
||||
hidden:
|
||||
field_image: true
|
||||
field_tags: true
|
||||
|
|
|
@ -17,6 +17,7 @@ mode: rss
|
|||
content:
|
||||
links:
|
||||
weight: 100
|
||||
region: content
|
||||
hidden:
|
||||
body: true
|
||||
comment: true
|
||||
|
|
|
@ -21,6 +21,7 @@ content:
|
|||
body:
|
||||
type: text_summary_or_trimmed
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
trim_length: 600
|
||||
third_party_settings: { }
|
||||
|
@ -28,6 +29,7 @@ content:
|
|||
field_image:
|
||||
type: image
|
||||
weight: -1
|
||||
region: content
|
||||
settings:
|
||||
image_style: medium
|
||||
image_link: content
|
||||
|
@ -36,12 +38,14 @@ content:
|
|||
field_tags:
|
||||
type: entity_reference_label
|
||||
weight: 10
|
||||
region: content
|
||||
settings:
|
||||
link: true
|
||||
third_party_settings: { }
|
||||
label: above
|
||||
links:
|
||||
weight: 100
|
||||
region: content
|
||||
hidden:
|
||||
comment: true
|
||||
field_image: true
|
||||
|
|
|
@ -16,8 +16,10 @@ content:
|
|||
label: hidden
|
||||
type: text_default
|
||||
weight: 100
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 101
|
||||
region: content
|
||||
hidden: { }
|
||||
|
|
|
@ -17,9 +17,11 @@ content:
|
|||
label: hidden
|
||||
type: text_summary_or_trimmed
|
||||
weight: 100
|
||||
region: content
|
||||
settings:
|
||||
trim_length: 600
|
||||
third_party_settings: { }
|
||||
links:
|
||||
weight: 101
|
||||
region: content
|
||||
hidden: { }
|
||||
|
|
|
@ -16,6 +16,7 @@ content:
|
|||
user_picture:
|
||||
type: image
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
image_style: thumbnail
|
||||
image_link: content
|
||||
|
|
|
@ -14,9 +14,11 @@ mode: default
|
|||
content:
|
||||
member_for:
|
||||
weight: 5
|
||||
region: content
|
||||
user_picture:
|
||||
type: image
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
image_style: thumbnail
|
||||
image_link: content
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
threshold:
|
||||
requirements_warning: 172800
|
||||
requirements_error: 1209600
|
||||
logging: 1
|
||||
|
|
|
@ -25,8 +25,8 @@ function standard_install() {
|
|||
$user_settings->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save(TRUE);
|
||||
|
||||
// Enable default permissions for system roles.
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('access comments'));
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access comments', 'post comments', 'skip comment approval'));
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access comments']);
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access comments', 'post comments', 'skip comment approval']);
|
||||
|
||||
// Assign user 1 the "administrator" role.
|
||||
$user = User::load(1);
|
||||
|
@ -40,34 +40,34 @@ function standard_install() {
|
|||
// Enable the Contact link in the footer menu.
|
||||
/** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */
|
||||
$menu_link_manager = \Drupal::service('plugin.manager.menu.link');
|
||||
$menu_link_manager->updateDefinition('contact.site_page', array('enabled' => TRUE));
|
||||
$menu_link_manager->updateDefinition('contact.site_page', ['enabled' => TRUE]);
|
||||
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('access site-wide contact form'));
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access site-wide contact form'));
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access site-wide contact form']);
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access site-wide contact form']);
|
||||
|
||||
// Allow authenticated users to use shortcuts.
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access shortcuts'));
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['access shortcuts']);
|
||||
|
||||
// Populate the default shortcut set.
|
||||
$shortcut = Shortcut::create(array(
|
||||
$shortcut = Shortcut::create([
|
||||
'shortcut_set' => 'default',
|
||||
'title' => t('Add content'),
|
||||
'weight' => -20,
|
||||
'link' => array('uri' => 'internal:/node/add'),
|
||||
));
|
||||
'link' => ['uri' => 'internal:/node/add'],
|
||||
]);
|
||||
$shortcut->save();
|
||||
|
||||
$shortcut = Shortcut::create(array(
|
||||
$shortcut = Shortcut::create([
|
||||
'shortcut_set' => 'default',
|
||||
'title' => t('All content'),
|
||||
'weight' => -19,
|
||||
'link' => array('uri' => 'internal:/admin/content'),
|
||||
));
|
||||
'link' => ['uri' => 'internal:/admin/content'],
|
||||
]);
|
||||
$shortcut->save();
|
||||
|
||||
// Allow all users to use search.
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('search content'));
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('search content'));
|
||||
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['search content']);
|
||||
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, ['search content']);
|
||||
|
||||
// Enable the admin theme.
|
||||
\Drupal::configFactory()->getEditable('node.settings')->set('use_admin_theme', TRUE)->save(TRUE);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Drupal\Tests\standard\Functional;
|
||||
|
||||
use Drupal\config\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\Tests\SchemaCheckTestTrait;
|
||||
use Drupal\contact\Entity\ContactForm;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber;
|
||||
|
@ -31,27 +31,27 @@ class StandardTest extends BrowserTestBase {
|
|||
/**
|
||||
* Tests Standard installation profile.
|
||||
*/
|
||||
function testStandard() {
|
||||
public function testStandard() {
|
||||
$this->drupalGet('');
|
||||
$this->assertLink(t('Contact'));
|
||||
$this->clickLink(t('Contact'));
|
||||
$this->assertResponse(200);
|
||||
|
||||
// Test anonymous user can access 'Main navigation' block.
|
||||
$this->adminUser = $this->drupalCreateUser(array(
|
||||
$this->adminUser = $this->drupalCreateUser([
|
||||
'administer blocks',
|
||||
'post comments',
|
||||
'skip comment approval',
|
||||
'create article content',
|
||||
'create page content',
|
||||
));
|
||||
]);
|
||||
$this->drupalLogin($this->adminUser);
|
||||
// Configure the block.
|
||||
$this->drupalGet('admin/structure/block/add/system_menu_block:main/bartik');
|
||||
$this->drupalPostForm(NULL, array(
|
||||
$this->drupalPostForm(NULL, [
|
||||
'region' => 'sidebar_first',
|
||||
'id' => 'main_navigation',
|
||||
), t('Save block'));
|
||||
], t('Save block'));
|
||||
// Verify admin user can see the block.
|
||||
$this->drupalGet('');
|
||||
$this->assertText('Main navigation');
|
||||
|
@ -59,18 +59,18 @@ class StandardTest extends BrowserTestBase {
|
|||
// Verify we have role = aria on system_powered_by and help_block
|
||||
// blocks.
|
||||
$this->drupalGet('admin/structure/block');
|
||||
$elements = $this->xpath('//div[@role=:role and @id=:id]', array(
|
||||
$elements = $this->xpath('//div[@role=:role and @id=:id]', [
|
||||
':role' => 'complementary',
|
||||
':id' => 'block-bartik-help',
|
||||
));
|
||||
]);
|
||||
|
||||
$this->assertEqual(count($elements), 1, 'Found complementary role on help block.');
|
||||
|
||||
$this->drupalGet('');
|
||||
$elements = $this->xpath('//div[@role=:role and @id=:id]', array(
|
||||
$elements = $this->xpath('//div[@role=:role and @id=:id]', [
|
||||
':role' => 'complementary',
|
||||
':id' => 'block-bartik-powered',
|
||||
));
|
||||
]);
|
||||
$this->assertEqual(count($elements), 1, 'Found complementary role on powered by block.');
|
||||
|
||||
// Verify anonymous user can see the block.
|
||||
|
@ -79,22 +79,22 @@ class StandardTest extends BrowserTestBase {
|
|||
|
||||
// Ensure comments don't show in the front page RSS feed.
|
||||
// Create an article.
|
||||
$this->drupalCreateNode(array(
|
||||
$this->drupalCreateNode([
|
||||
'type' => 'article',
|
||||
'title' => 'Foobar',
|
||||
'promote' => 1,
|
||||
'status' => 1,
|
||||
'body' => array(array('value' => 'Then she picked out two somebodies,<br />Sally and me', 'format' => 'basic_html')),
|
||||
));
|
||||
'body' => [['value' => 'Then she picked out two somebodies,<br />Sally and me', 'format' => 'basic_html']],
|
||||
]);
|
||||
|
||||
// Add a comment.
|
||||
$this->drupalLogin($this->adminUser);
|
||||
$this->drupalGet('node/1');
|
||||
$this->assertRaw('Then she picked out two somebodies,<br />Sally and me', 'Found a line break.');
|
||||
$this->drupalPostForm(NULL, array(
|
||||
$this->drupalPostForm(NULL, [
|
||||
'subject[0][value]' => 'Barfoo',
|
||||
'comment_body[0][value]' => 'Then she picked out two somebodies, Sally and me',
|
||||
), t('Save'));
|
||||
], t('Save'));
|
||||
// Fetch the feed.
|
||||
$this->drupalGet('rss.xml');
|
||||
$this->assertText('Foobar');
|
||||
|
@ -131,9 +131,9 @@ class StandardTest extends BrowserTestBase {
|
|||
$filter->removeFilter('editor_file_reference');
|
||||
$filter->save();
|
||||
}
|
||||
\Drupal::service('module_installer')->uninstall(array('editor', 'ckeditor'));
|
||||
\Drupal::service('module_installer')->uninstall(['editor', 'ckeditor']);
|
||||
$this->rebuildContainer();
|
||||
\Drupal::service('module_installer')->install(array('editor'));
|
||||
\Drupal::service('module_installer')->install(['editor']);
|
||||
/** @var \Drupal\contact\ContactFormInterface $contact_form */
|
||||
$contact_form = ContactForm::load('feedback');
|
||||
$recipients = $contact_form->getRecipients();
|
||||
|
@ -167,7 +167,7 @@ class StandardTest extends BrowserTestBase {
|
|||
|
||||
// Make sure the optional image styles are installed after enabling
|
||||
// the responsive_image module.
|
||||
\Drupal::service('module_installer')->install(array('responsive_image'));
|
||||
\Drupal::service('module_installer')->install(['responsive_image']);
|
||||
$this->rebuildContainer();
|
||||
$this->drupalGet('admin/config/media/image-styles');
|
||||
$this->assertText('Max 325x325');
|
||||
|
|
Reference in a new issue