Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713

This commit is contained in:
Pantheon Automation 2016-05-04 14:35:41 -07:00 committed by Greg Anderson
parent c0a0d5a94c
commit 9eae24d844
669 changed files with 3873 additions and 1553 deletions

View file

@ -80,7 +80,7 @@ function block_content_add_body_field($block_type_id, $label = 'Body') {
$field = FieldConfig::loadByName('block_content', $block_type_id, 'body');
if (empty($field)) {
$field = FieldConfig::create([
'field_storage' => FieldStorageConfig::loadByName('block_content', 'body'),
'field_storage' => FieldStorageConfig::loadByName('block_content', 'body'),
'bundle' => $block_type_id,
'label' => $label,
'settings' => array('display_summary' => FALSE),

View file

@ -74,7 +74,7 @@ abstract class BlockContentTestBase extends WebTestBase {
* Created custom block.
*/
protected function createBlockContent($title = FALSE, $bundle = 'basic', $save = TRUE) {
$title = ($title ? : $this->randomMachineName());
$title = $title ?: $this->randomMachineName();
$block_content = BlockContent::create(array(
'info' => $title,
'type' => $bundle,

View file

@ -91,8 +91,8 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
* Created custom block.
*/
protected function createBlockContent($title = FALSE, $bundle = FALSE) {
$title = ($title ? : $this->randomMachineName());
$bundle = ($bundle ? : $this->bundle);
$title = $title ?: $this->randomMachineName();
$bundle = $bundle ?: $this->bundle;
$block_content = BlockContent::create(array(
'info' => $title,
'type' => $bundle,

View file

@ -46,7 +46,7 @@ class BlockContentTypeTest extends BlockContentTestBase {
* Tests creating a block type programmatically and via a form.
*/
public function testBlockContentTypeCreation() {
// Login a test user.
// Log in a test user.
$this->drupalLogin($this->adminUser);
// Test the page with no block-types.