Basic Automated Testing

Created on 1 March 2023, over 1 year ago
Updated 23 March 2023, over 1 year ago

Problem/Motivation

The pantheon_decoupled_profile install profile should contain automated tests that confirm the install profile is functioning as expected.

Proposed resolution

* A php unit test can be run manually, which will test the following aspects of pantheon_decoupled_profile:
** homepage loads and contains example content
** jsonapi is enabled (/jsonapi returns a 200)
** Menu items are available via json:api (jsonapi/menu_items/main returns a 200 and includes valid menu items)
* Documentation is added to the project readme explaining how to run the automated tests.

Open to whatever is the best solution for test coverage, but best gues is PHPUnit browser Tests: https://www.drupal.org/docs/automated-testing/phpunit-in-drupal/phpunit-...

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States brianperry

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

Comments & Activities

Production build 0.69.0 2024