Problem/Motivation

This is follow-up from tests for #2843752: EntityResource: Provide comprehensive test coverage for Item entity.

\Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase::testPost tests for uuid field for all entity types. Some entity types. eg \Drupal\aggregator\Entity\Item has no uuid field.

Proposed resolution

Add check for uuid field in \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase::testPost

Remaining tasks

1. Write patch.

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arshadcn created an issue. See original summary.

shadcn’s picture

Status: Active » Needs work
FileSize
1.47 KB
shadcn’s picture

Status: Needs work » Needs review
Wim Leers’s picture

Any entity that does not have a UUID will not be deployable/syncable. The problem here is that the Item entity type does not have a UUID. But we have #2149851: Remove todo about GUID field on the 'aggregator_item' entity and add UUID field to fix that.

So I'd rather fix #2149851: Remove todo about GUID field on the 'aggregator_item' entity and add UUID field instead.

Besides, making the change proposed here means less test coverage for a particular kind of failure: we're then no longer testing for UUID-less entities whether basic entity field validation constraints are tested.

Wim Leers’s picture

Status: Postponed » Closed (duplicate)