CommentNonNodeTest::testCommentFunctionality() is failing for MongoDB

Created on 16 September 2024, 2 months ago

Problem/Motivation

The test CommentNonNodeTest::testCommentFunctionality() is failing for MongoDB. In the test is a new comment type created, but no comment field is added to the entity_type "entity_test". The following error is given:

Drupal\Core\Entity\EntityStorageException: Cannot add embedded table data, because the table entity_test__field_foobar does not exist.

/var/www/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php:1421
/var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:354
/var/www/html/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php:460

Caused by
Drupal\Core\Database\SchemaObjectDoesNotExistException: Cannot add embedded table data, because the table entity_test__field_foobar does not exist.

Steps to reproduce

Run the test without the added comment field for MongoDB.

Proposed resolution

Add the comment field to the entity type "entity_test".

Remaining tasks

TBD

User interface changes

None

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet

None

πŸ› Bug report
Status

RTBC

Version

11.0 πŸ”₯

Component
CommentΒ  β†’

Last updated 2 days ago

Created by

πŸ‡³πŸ‡±Netherlands daffie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024