Problem/Motivation
Please refer the problem/motivation section of #2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method
Proposed resolution
Write EntityResourceTestBase subclass for the NodeType entity.
Remaining tasks
References
1. Follow-up of #2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method
2. Subtask of #2824572: Write EntityResourceTestBase subclasses for every other entity type.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff-2843777-4-6.txt | 770 bytes | shadcn |
| #6 | entityresource_provide-2843777-6.patch | 8.04 KB | shadcn |
| #4 | entityresource_provide-2843777-4.patch | 8.18 KB | shadcn |
Comments
Comment #3
shadcn commentedWorking on this until #2853211: EntityResource::post() incorrectly assumes that every entity type has a canonical URL unblocks the other issues.
Comment #4
shadcn commentedComment #5
wim leersInteresting, why all of them but not
POST?Comment #6
shadcn commentedThis was from
\Drupal\Tests\rest\Functional\EntityResource\Node\NodeResourceTestBase::getExpectedUnauthorizedAccessMessage.Fixed it for
NodeTypeResourceTestBase.Thanks @Wim Leers.
Comment #7
wim leersI just tried to fix it for
NodeResourceTestBasetoo, and that causes fails. So that code is necessary forNodeResourceTestBase. But #6 proves it's not necessary forNodeType.So, this is good to go! Thanks!
Comment #8
alexpottCommitted and pushed 5222fbf to 8.4.x and 3ed4688 to 8.3.x. Thanks!