updated core and modules

This commit is contained in:
Bachir Soussi Chiadmi
2017-09-09 16:27:51 +02:00
parent 027aa99b32
commit 41863f872c
7810 changed files with 318922 additions and 83631 deletions
+3 -3
View File
@@ -12,8 +12,8 @@ dependencies:
themes:
- stark
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957
+1
View File
@@ -1,4 +1,5 @@
<?php
/**
* @file
* Install, update and uninstall functions for the minimal installation profile.
@@ -0,0 +1,42 @@
<?php
namespace Drupal\Tests\minimal\Functional;
use Drupal\Tests\BrowserTestBase;
/**
* Tests Minimal installation profile expectations.
*
* @group minimal
*/
class MinimalTest extends BrowserTestBase {
protected $profile = 'minimal';
/**
* Tests Minimal installation profile.
*/
public function testMinimal() {
$this->drupalGet('');
// Check the login block is present.
$this->assertLink(t('Create new account'));
$this->assertResponse(200);
// Create a user to test tools and navigation blocks for logged in users
// with appropriate permissions.
$user = $this->drupalCreateUser(['access administration pages', 'administer content types']);
$this->drupalLogin($user);
$this->drupalGet('');
$this->assertText(t('Tools'));
$this->assertText(t('Administration'));
// Ensure that there are no pending updates after installation.
$this->drupalLogin($this->rootUser);
$this->drupalGet('update.php/selection');
$this->assertText('No pending updates.');
// Ensure that there are no pending entity updates after installation.
$this->assertFalse($this->container->get('entity.definition_update_manager')->needsUpdates(), 'After installation, entity schema is up to date.');
}
}
@@ -7,3 +7,5 @@ recipients:
- admin@example.com
reply: ''
weight: 0
message: 'Your message has been sent.'
redirect: ''
@@ -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: { }
@@ -2,6 +2,7 @@ langcode: en
status: true
dependencies:
config:
- core.entity_view_display.comment.comment.default
- field.field.node.article.body
- field.field.node.article.comment
- field.field.node.article.field_image
@@ -21,19 +22,23 @@ content:
body:
type: text_default
weight: 0
region: content
settings: { }
third_party_settings: { }
label: hidden
comment:
label: above
type: comment_default
weight: 20
weight: 110
region: content
label: above
settings:
view_mode: default
pager_id: 0
third_party_settings: { }
field_image:
type: image
weight: -1
region: content
settings:
image_style: large
image_link: ''
@@ -42,19 +47,14 @@ content:
field_tags:
type: entity_reference_label
weight: 10
region: content
label: above
settings:
link: true
third_party_settings: { }
comment:
label: above
type: comment_default
weight: 110
settings:
pager_id: 0
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
@@ -5,6 +5,6 @@ name: Article
type: article
description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.'
help: ''
new_revision: false
new_revision: true
preview_mode: 1
display_submitted: true
@@ -5,6 +5,6 @@ name: 'Basic page'
type: page
description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.'
help: ''
new_revision: false
new_revision: true
preview_mode: 1
display_submitted: false
@@ -1,3 +1,4 @@
threshold:
requirements_warning: 172800
requirements_error: 1209600
logging: 1
+3 -3
View File
@@ -42,8 +42,8 @@ themes:
- bartik
- seven
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957
+15 -14
View File
@@ -1,4 +1,5 @@
<?php
/**
* @file
* Install, update and uninstall functions for the standard installation profile.
@@ -24,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);
@@ -39,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);
+1
View File
@@ -1,4 +1,5 @@
<?php
/**
* @file
* Enables modules and site configuration for a standard site installation.
@@ -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');
@@ -5,8 +5,8 @@ package: Testing
# version: VERSION
# core: 8.x
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957
@@ -20,7 +20,7 @@ class SystemListingCompatibleTest extends WebTestBase {
*
* @var array
*/
public static $modules = array('drupal_system_listing_compatible_test');
public static $modules = ['drupal_system_listing_compatible_test'];
/**
* Use the Minimal profile.
@@ -35,7 +35,7 @@ class SystemListingCompatibleTest extends WebTestBase {
/**
* Non-empty test* method required to executed the test case class.
*/
function testSystemListing() {
public function testSystemListing() {
$this->pass(__CLASS__ . ' test executed.');
}
+3 -3
View File
@@ -13,8 +13,8 @@ dependencies:
themes:
- classy
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957
@@ -9,8 +9,8 @@ dependencies:
themes:
- stark
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957
@@ -1,3 +1,4 @@
threshold:
requirements_warning: 259200
requirements_error: 1209600
logging: 1
@@ -9,8 +9,8 @@ dependencies:
- language
- tour
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957
@@ -0,0 +1,16 @@
name: 'Testing missing dependencies'
type: profile
description: 'Minimal profile for running a test when dependencies are listed but missing.'
# version: VERSION
# core: 8.x
hidden: true
dependencies:
- missing_module1
- missing_module2
keep_english: true
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1502903957
@@ -8,8 +8,8 @@ dependencies:
- locale
- tour
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957
@@ -8,8 +8,8 @@ dependencies:
- locale
keep_english: true
# Information added by Drupal.org packaging script on 2016-08-03
version: '8.1.8'
# Information added by Drupal.org packaging script on 2017-08-16
version: '8.3.7'
core: '8.x'
project: 'drupal'
datestamp: 1470233790
datestamp: 1502903957