This test doesn't test block body and for good reasons: it's using the wrong syntax for specifying body to entity_create().

CommentFileSizeAuthor
#3 2176831_3.patch1.35 KBchx
#1 2176831_1.patch1.16 KBchx
cbst_fail.patch1.33 KBchx

Comments

chx’s picture

Issue summary: View changes
StatusFileSize
new1.16 KB

Status: Needs review » Needs work

The last submitted patch, 1: 2176831_1.patch, failed testing.

chx’s picture

Status: Needs work » Needs review
StatusFileSize
new1.35 KB

The last submitted patch, cbst_fail.patch, failed testing.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community
+++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockSaveTest.php
@@ -49,13 +49,13 @@ public function testImport() {
-      'body' => array(Language::LANGCODE_NOT_SPECIFIED => array(array('value' => $this->randomName(32)))),
+      'body' => array('value' => $this->randomName(32)),

Ouch, nice find.

larowlan’s picture

indeed, thanks

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed d017695 and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.