Make WordPress Core

Opened 5 weeks ago

Last modified 3 weeks ago

#47880 new task (blessed)

Extend unit tests for Site Health component.

Reported by: peterwilsoncc Owned by:
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Site Health Keywords: needs-unit-tests
Focuses: Cc:


A file for site health check unit tests has been added in tests/phpunit/tests/site-health.php.

At the time of writing it only includes tests for various states of cron, expanding these would help with future development of the component.

Change History (1)

#1 @Clorith
3 weeks ago

  • Milestone changed from Awaiting Review to 5.3
  • Type changed from enhancement to task (blessed)

Agreed, some inspiration can be taken from the plugin (https://github.com/WordPress/health-check/tree/master/tests/phpunit), although the tests there also need to be expanded upon as they're fairly limited at this time, and relate more to user experience (in the relation of the Site Health Checks).

I'm going to flag this for 5.3, to get some traction, but with the knowledge it may end up getting bumped to 5.4 as well, and change it to a task as unit tests can be added throughout betas so we don't stop any momentum gained.

Note: See TracTickets for help on using tickets.