diff --git a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php index dc2214a7be..f733ce9073 100644 --- a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php +++ b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php @@ -81,6 +81,7 @@ public function testValidation() { 'entity_id' => $node->id(), 'entity_type' => 'invalid-entity_type', 'field_name' => 'comment', + 'bundle' => 'comment', 'comment_body' => $this->randomMachineName(), ]); $violations = $comment->validate(); diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php index feb97f25cf..ddbcfdf481 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php @@ -219,6 +219,11 @@ protected function getNormalizedPostEntity() { 'value' => 'entity_test', ], ], + 'bundle' => [ + [ + 'value' => 'comment', + ], + ], 'entity_id' => [ [ 'target_id' => (int) EntityTest::load(1)->id(), diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php index 21eb4d97ee..1414f25b77 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php @@ -147,7 +147,6 @@ public function testEntityLevelConstraintValidation() { 'name' => 'entity-level-violation' ]); $entity->save(); - $errors = $this->getErrorsForEntity($entity); $this->assertEqual($errors[''], 'Entity level validation');