WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 2 weeks ago

#53997 new task (blessed)

Add some unit tests for the WP_Upgrader class

Reported by: SergeyBiryukov Owned by:
Milestone: 6.0 Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: needs-unit-tests
Focuses: Cc:

Description

As part of the work on #51857 and #22316, it would be ideal to have unit tests for the new functionality, but there are currently no tests for the Upgrade/Install component.

Let's add some basic tests, starting with the WP_Upgrader class, maybe Plugin_Upgrader and Theme_Upgrader too.

There are some existing tests for WP_Filesystem methods, as well as for the REST API plugins controller, which may or may not be helpful as a starting point.

Change History (2)

#2 @audrasjb
2 weeks ago

  • Milestone changed from 5.9 to 6.0

As we're going closer to 5.9 beta 1, I'm moving this ticket to the next milestone :)

Note: See TracTickets for help on using tickets.