[wp-trac] [WordPress Trac] #53997: Add some unit tests for the WP_Upgrader class

WordPress Trac noreply at wordpress.org
Tue Aug 24 23:26:40 UTC 2021


#53997: Add some unit tests for the WP_Upgrader class
-----------------------------+------------------------------
 Reporter:  SergeyBiryukov   |      Owner:  (none)
     Type:  task (blessed)   |     Status:  new
 Priority:  normal           |  Milestone:  5.9
Component:  Upgrade/Install  |    Version:
 Severity:  normal           |   Keywords:  needs-unit-tests
  Focuses:                   |
-----------------------------+------------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53997>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list