Skip to content

Commit

Permalink
Issue #2381909 by larowlan, alexpott: Basic block type provided by st…
Browse files Browse the repository at this point in the history
…andard is missing a body field
  • Loading branch information
dbuytaert committed Dec 1, 2014
1 parent 6ec9c1f commit 8839de5
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
langcode: en
status: true
dependencies:
config:
- block_content.type.basic
- field.field.block_content.basic.body
module:
- text
id: block_content.basic.default
targetEntityType: block_content
bundle: basic
mode: default
content:
info:
type: string_textfield
weight: -5
settings:
size: 60
placeholder: ''
third_party_settings: { }
body:
type: text_textarea_with_summary
weight: -4
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
hidden: { }
third_party_settings: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
langcode: en
status: true
dependencies:
config:
- block_content.type.basic
- field.field.block_content.basic.body
module:
- text
id: block_content.basic.default
label: null
targetEntityType: block_content
bundle: basic
mode: default
content:
body:
label: hidden
type: text_default
weight: 0
settings: { }
third_party_settings: { }
hidden: { }
third_party_settings: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
langcode: en
status: true
dependencies:
config:
- block_content.type.basic
- field.storage.block_content.body
module:
- text
id: block_content.basic.body
field_name: body
entity_type: block_content
bundle: basic
label: Body
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
display_summary: false
third_party_settings: { }
field_type: text_with_summary
4 changes: 4 additions & 0 deletions core/profiles/standard/src/Tests/StandardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ function testStandard() {
$this->assertText('Foobar');
$this->assertNoText('Then she picked out two somebodies, Sally and me');

// Ensure block body exists.
$this->drupalGet('block/add');
$this->assertFieldByName('body[0][value]');

// Now we have all configuration imported, test all of them for schema
// conformance. Ensures all imported default configuration is valid when
// standard profile modules are enabled.
Expand Down

0 comments on commit 8839de5

Please sign in to comment.