Opened 5 weeks ago
Closed 4 weeks ago
#65199 closed enhancement (fixed)
Tests: Add unit tests for wp_refresh_heartbeat_nonces()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.1 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch has-unit-tests |
| Focuses: | tests | Cc: |
Description
This ticket adds unit tests for the wp_refresh_heartbeat_nonces() function in wp-admin/includes/misc.php. These tests will verify that the function correctly refreshes the Heartbeat nonce and returns it in the response data.
Change History (3)
This ticket was mentioned in PR #11759 on WordPress/wordpress-develop by @pbearne.
5 weeks ago
#1
- Keywords has-patch has-unit-tests added
Note: See
TracTickets for help on using
tickets.
…/misc.php
Description:
This PR adds unit tests for the
wp_refresh_heartbeat_nonces()function inwp-admin/includes/misc.php. This function is responsible for adding refreshed REST API and Heartbeat nonces to the response sent back during Heartbeat requests.The tests cover:
rest_nonceandheartbeat_nonceto an existing response array.Trac ticket: https://core.trac.wordpress.org/ticket/65199
AI Disclosure: