Implement test coverage

Created on 21 April 2024, 5 months ago

Problem/Motivation

It would be nice to write test coverage for this to check that a JSON:API path is inaccessible once this module is enabled.

Steps to reproduce

n/a

Proposed resolution

Create a PHPUnit test that will run and implement CI to check and ensure test is passing.

Remaining tasks

I think this can be done by

  1. Go to a known path, /jsonapi/node/article
  2. ensure the response code is 403
  3. parse the request and ensure it is checking for the correct permission string

Since we need a fully bootstrapped Drupal instance, this should be a Functional test β†’ .

User interface changes

n/a

API changes

n/a

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dan612 Portland, Maine

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024