updated core to 8.6.1 via composer

This commit is contained in:
2018-09-12 13:58:26 +02:00
parent a9a219f2ed
commit ea56b9fba3
4443 changed files with 112098 additions and 40708 deletions
@@ -14,7 +14,7 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 3
weight: 10
region: content
settings: { }
third_party_settings: { }
@@ -35,7 +35,7 @@ content:
third_party_settings: { }
path:
type: path
weight: 4
weight: 30
region: content
settings: { }
third_party_settings: { }
@@ -43,12 +43,12 @@ content:
type: boolean_checkbox
settings:
display_label: true
weight: 5
weight: 100
region: content
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 2
weight: 5
settings:
match_operator: CONTAINS
size: 60
@@ -0,0 +1,52 @@
langcode: en
status: true
dependencies:
config:
- field.field.media.remote_video.field_media_oembed_video
- media.type.remote_video
module:
- media
- path
id: media.remote_video.default
targetEntityType: media
bundle: remote_video
mode: default
content:
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
field_media_oembed_video:
type: oembed_textfield
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
region: content
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 100
region: content
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 5
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
region: content
third_party_settings: { }
hidden:
name: true
@@ -14,7 +14,7 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 3
weight: 10
region: content
settings: { }
third_party_settings: { }
@@ -35,7 +35,7 @@ content:
third_party_settings: { }
path:
type: path
weight: 4
weight: 30
region: content
settings: { }
third_party_settings: { }
@@ -43,12 +43,12 @@ content:
type: boolean_checkbox
settings:
display_label: true
weight: 5
weight: 100
region: content
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 2
weight: 5
settings:
match_operator: CONTAINS
size: 60
@@ -0,0 +1,27 @@
langcode: en
status: true
dependencies:
config:
- field.field.media.remote_video.field_media_oembed_video
- media.type.remote_video
module:
- media
id: media.remote_video.default
targetEntityType: media
bundle: remote_video
mode: default
content:
field_media_oembed_video:
type: oembed
weight: 0
label: hidden
settings:
max_width: 0
max_height: 0
third_party_settings: { }
region: content
hidden:
created: true
name: true
thumbnail: true
uid: true
@@ -0,0 +1,18 @@
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_media_oembed_video
- media.type.remote_video
id: media.remote_video.field_media_oembed_video
field_name: field_media_oembed_video
entity_type: media
bundle: remote_video
label: 'Video URL'
description: ''
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
@@ -0,0 +1,20 @@
langcode: en
status: true
dependencies:
module:
- media
id: media.field_media_oembed_video
field_name: field_media_oembed_video
entity_type: media
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
@@ -0,0 +1,16 @@
langcode: en
status: true
dependencies: { }
id: remote_video
label: 'Remote video'
description: 'A remotely hosted video from YouTube or Vimeo.'
source: 'oembed:video'
queue_thumbnail_downloads: false
new_revision: false
source_configuration:
thumbnails_directory: 'public://oembed_thumbnails'
providers:
- YouTube
- Vimeo
source_field: field_media_oembed_video
field_map: { }
@@ -0,0 +1,59 @@
langcode: en
status: true
dependencies:
module:
- content_moderation
id: editorial
label: 'Editorial'
type: content_moderation
type_settings:
states:
archived:
label: Archived
weight: 5
published: false
default_revision: true
draft:
label: Draft
published: false
default_revision: false
weight: -5
published:
label: Published
published: true
default_revision: true
weight: 0
transitions:
archive:
label: Archive
from:
- published
to: archived
weight: 2
archived_draft:
label: 'Restore to Draft'
from:
- archived
to: draft
weight: 3
archived_published:
label: Restore
from:
- archived
to: published
weight: 4
create_new_draft:
label: 'Create New Draft'
to: draft
weight: 0
from:
- draft
- published
publish:
label: Publish
to: published
weight: 1
from:
- draft
- published
entity_types: { }
+1 -1
View File
@@ -3,7 +3,7 @@ type: profile
description: 'Install with commonly used features pre-configured.'
version: VERSION
core: 8.x
dependencies:
install:
- node
- history
- block
@@ -2,6 +2,8 @@
namespace Drupal\Tests\standard\Functional;
use Drupal\Component\Utility\Html;
use Drupal\media\Entity\MediaType;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\contact\Entity\ContactForm;
use Drupal\Core\Url;
@@ -197,6 +199,63 @@ class StandardTest extends BrowserTestBase {
$this->drupalGet($url);
$this->drupalGet($url);
$this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'User profile page is cached by Dynamic Page Cache.');
// Make sure the editorial workflow is installed after enabling the
// content_moderation module.
\Drupal::service('module_installer')->install(['content_moderation']);
$role = Role::create([
'id' => 'admin_workflows',
'label' => 'Admin workflow',
]);
$role->grantPermission('administer workflows');
$role->save();
$this->adminUser->addRole($role->id());
$this->adminUser->save();
$this->rebuildContainer();
$this->drupalGet('admin/config/workflow/workflows/manage/editorial');
$this->assertText('Draft');
$this->assertText('Published');
$this->assertText('Archived');
$this->assertText('Create New Draft');
$this->assertText('Publish');
$this->assertText('Archive');
$this->assertText('Restore to Draft');
$this->assertText('Restore');
\Drupal::service('module_installer')->install(['media']);
$role = Role::create([
'id' => 'admin_media',
'label' => 'Admin media',
]);
$role->grantPermission('administer media');
$role->save();
$this->adminUser->addRole($role->id());
$this->adminUser->save();
$assert_session = $this->assertSession();
$page = $this->getSession()->getPage();
/** @var \Drupal\media\Entity\MediaType $media_type */
foreach (MediaType::loadMultiple() as $media_type) {
$media_type_machine_name = $media_type->id();
$this->drupalGet('media/add/' . $media_type_machine_name);
// Get the form element, and its HTML representation.
$form_selector = '#media-' . Html::cleanCssIdentifier($media_type_machine_name) . '-add-form';
$form = $assert_session->elementExists('css', $form_selector);
$form_html = $form->getOuterHtml();
// The name field (if it exists) should come before the source field,
// which should itself come before the vertical tabs.
$test_source_field = $assert_session->fieldExists($media_type->getSource()->getSourceFieldDefinition($media_type)->getLabel(), $form)->getOuterHtml();
$vertical_tabs = $assert_session->elementExists('css', '.form-type-vertical-tabs', $form)->getOuterHtml();
$date_field = $assert_session->fieldExists('Date', $form)->getOuterHtml();
$published_checkbox = $assert_session->fieldExists('Published', $form)->getOuterHtml();
if ($page->findField('Name')) {
$name_field = $assert_session->fieldExists('Name', $form)->getOuterHtml();
$this->assertTrue(strpos($form_html, $test_source_field) > strpos($form_html, $name_field));
}
$this->assertTrue(strpos($form_html, $vertical_tabs) > strpos($form_html, $test_source_field));
// The "Published" checkbox should be the last element.
$this->assertTrue(strpos($form_html, $published_checkbox) > strpos($form_html, $date_field));
}
}
}
@@ -2,7 +2,7 @@
namespace Drupal\Tests\standard\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\node\Entity\Node;
/**
@@ -10,7 +10,7 @@ use Drupal\node\Entity\Node;
*
* @group standard
*/
class StandardJavascriptTest extends JavascriptTestBase {
class StandardJavascriptTest extends WebDriverTestBase {
/**
* {@inheritdoc}
@@ -30,7 +30,7 @@ class StandardJavascriptTest extends JavascriptTestBase {
$node = Node::create(['type' => 'article'])
->setTitle($this->randomMachineName())
->setPromoted(TRUE)
->setPublished(TRUE);
->setPublished();
$node->save();
// Front page: one placeholder, for messages.