[wp-trac] [WordPress Trac] #65137: Unit Tests: Add tests for insert_with_markers()
WordPress Trac
noreply at wordpress.org
Mon Apr 27 20:09:33 UTC 2026
#65137: Unit Tests: Add tests for insert_with_markers()
----------------------------+-----------------------------
Reporter: pbearne | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
The function insert_with_markers() in src/wp-admin/includes/misc.php lacks
unit tests. This PR adds tests to ensure it correctly inserts or replaces
content between markers in a file, handles file creation, permissions, and
respects existing content outside markers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65137>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list