[wp-trac] [WordPress Trac] #53882: phpunit test for wp_nonce_ays

WordPress Trac noreply at wordpress.org
Fri Aug 13 14:00:20 UTC 2021


#53882: phpunit test for wp_nonce_ays
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch dev-feedback has-unit-     |     Focuses:
  tests needs-refresh                            |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51608" 51608]:
 {{{
 #!CommitTicketReference repository="" revision="51608"
 Tests: Add unit tests for the `wp_nonce_ays()` function.

 Update the `wp_die_handler()` method to pass the response into
 `WPDieException` so that `expectExceptionCode()` calls work as expected.

 Follow-up to [1221/tests], [3934], [4009], [12309].

 Props pbearne, jrf, mukesh27.
 Fixes #53882.
 }}}

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


More information about the wp-trac mailing list