Opened 5 weeks ago
Closed 5 weeks ago
#65200 closed enhancement (fixed)
Tests: Add unit tests for wp_heartbeat_set_suspension()
| 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_heartbeat_set_suspension() function in wp-admin/includes/misc.php. The tests will verify that the function correctly modifies the Heartbeat settings to disable suspension when on post.php or post-new.php, and leaves them unchanged otherwise.
Change History (3)
This ticket was mentioned in PR #11761 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_heartbeat_set_suspension()function inwp-admin/includes/misc.php. This function is responsible for disabling the suspension of Heartbeat on the Add/Edit Post screens to ensure consistent behavior during content creation.The tests cover:
$pagenowglobal ispost.php.$pagenowglobal ispost-new.php.index.php,edit.php).Trac ticket: https://core.trac.wordpress.org/ticket/65200
AI Disclosure: