Move all entity type REST tests to the providing modules

Created on 22 September 2017, over 6 years ago
Updated 12 September 2023, 9 months ago

Problem/Motivation

Drupal 8's REST support was developed in parallel with many other major changes in Drupal 8. Consequently, we ended up with a REST module that had little test coverage.

We fixed that in #2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method β†’ + #2824572: Write EntityResourceTestBase subclasses for every other entity type. β†’ . Then we ensured that we'd never regress: #2868035: Test that all core content+config entity types have functional REST test coverage β†’ .

The next step is to ensure that every module owns its REST test coverage, to instill responsibility.

Proposed resolution

Move \Drupal\Tests\hal\Functional\EntityResource\Node\NodeHalJsonAnonTest to \Drupal\Tests\node\Functional\Rest\NodeHalJsonAnonTest, etc.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Fixed

Version

8.6 ⚰️

Component
RESTΒ  β†’

Last updated 7 days ago

Created by

πŸ‡§πŸ‡ͺBelgium Wim Leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024