[wp-trac] [WordPress Trac] #59647: Test tool and unit test improvements for 6.5

WordPress Trac noreply at wordpress.org
Wed Feb 21 01:06:08 UTC 2024


#59647: Test tool and unit test improvements for 6.5
--------------------------------------+---------------------
 Reporter:  hellofromTonya            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.5
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by costdev):

 In [changeset:"57674" 57674]:
 {{{
 #!CommitTicketReference repository="" revision="57674"
 Tests: Mock API response in Plugin Dependencies tests.

 Previously, the tests for `WP_Plugin_Dependencies::get_dependency_names()`
 performed an API request to WordPress.org. If an HTTP failure occurred
 when connecting to WordPress.org, this could trigger test failures.

 This mocks the API response to prevent HTTP failures from triggering test
 failures.

 Follow-up to [57545].

 Props swissspidy, peterwilsoncc, costdev.
 See #59647.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59647#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list