[wp-trac] [WordPress Trac] #65186: Tests: Add unit tests for _customizer_mobile_viewport_meta() (was: Tests: Add unit tests for extract_from_markers())

WordPress Trac noreply at wordpress.org
Wed May 6 21:45:54 UTC 2026


#65186: Tests: Add unit tests for _customizer_mobile_viewport_meta()
----------------------------+------------------------------
 Reporter:  pbearne         |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Description changed by pbearne:

Old description:

> This ticket adds comprehensive unit tests for the extract_from_markers()
> function in wp-admin/includes/misc.php. The tests will cover extracting
> content between custom markers, handling missing files, empty markers,
> and various line formats (including comments).

New description:

 This ticket adds unit tests for the _customizer_mobile_viewport_meta()
 function in wp-admin/includes/misc.php. The tests will verify that the
 function correctly appends the mobile-specific viewport settings to the
 existing viewport meta string.

--

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


More information about the wp-trac mailing list