WordPress.org

Make WordPress Core

Opened 3 weeks ago

#53997 new task (blessed)

Add some unit tests for the WP_Upgrader class

Reported by: SergeyBiryukov Owned by:
Milestone: 5.9 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 (0)

Note: See TracTickets for help on using tickets.