Use ApiRequestTrait in \Drupal\Tests\rest\Functional\ResourceTestBase

Created on 19 November 2022, over 1 year ago
Updated 11 November 2023, 8 months ago

Problem/Motivation

This is a followup to #3227824: Move the linkset functionality from the decoupled menus contributed module to core's system module β†’ . In #157 over there alexpott commented:

When this lands we should create a followup to use ApiRequestTrait in \Drupal\Tests\rest\Functional\ResourceTestBase.

Steps to reproduce

N/A

Proposed resolution

Remaining tasks

Patch
Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

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.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Environment: PHP 8.1 & MySQL 5.7 updated deps
    last update 8 months ago
    Custom Commands Failed
  • Status changed to Needs work 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Think it's a CC failure? Though updated deps is new to me.

    Maybe turn to an MR to be sure?

    Change looks fine though. Just optimizing existing code.

  • πŸ‡«πŸ‡·France vbouchet

    As you mentioned in other issue, seems the tests are not executed automatically anymore. At least I had to manually queues these for the few patches I submited today and I also noticed the "reqs" things. I will try to turn it into a MR layer.

  • @vbouchet opened merge request.
  • Status changed to Needs review 8 months ago
  • πŸ‡«πŸ‡·France vbouchet

    I applied the same change in a MR instead of a patch.

  • Status changed to RTBC 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Reran nightwatch and it was a random failure.

    Change looks good!

  • Status changed to Needs work 8 months ago
  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    I think this should also try to replace ResourceTestBase::request() with ApiRequestTrait::makeApiRequest() as the code looks pretty similar.

Production build 0.69.0 2024