Refactor rest\Functional\ResourceTestBase to use ApiRequestTrait

Created on 11 November 2022, about 2 years ago
Updated 28 August 2024, 5 months ago

Problem/Motivation

In #3227824: Move the linkset functionality from the decoupled menus contributed module to core's system module → we introduced a ApiRequestTrait . This trait is used in the LinkSet functionality and JSON:API. This should also be used in \Drupal\Tests\rest\Functional\ResourceTestBase to minimize duplicated code. It is allowed to rename the method when using the trait (as seen in core/modules/jsonapi/tests/src/Functional/JsonApiRequestTestTrait.php.

Postponed on parent issue:
#3227824: Move the linkset functionality from the decoupled menus contributed module to core's system module →

Steps to reproduce

na

Proposed resolution

Refactor \Drupal\Tests\rest\Functional\ResourceTestBase to use the test trait instead of a local method.

Remaining tasks

na.

User interface changes

na.

API changes

na.

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
REST  →

Last updated 2 months ago

Created by

🇳🇱Netherlands bbrala Netherlands

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

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.71.5 2024