Opened 6 hours ago
Last modified 5 hours ago
#65178 new enhancement
Tests: Add unit tests for wp_print_theme_file_tree()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
This ticket adds unit tests for the wp_print_theme_file_tree() function in wp-admin/includes/misc.php. This function is responsible for outputting the hierarchical file list for the theme editor.
Change History (1)
This ticket was mentioned in PR #11733 on WordPress/wordpress-develop by @pbearne.
5 hours ago
#1
- Keywords has-patch has-unit-tests added
Note: See
TracTickets for help on using
tickets.
…sc.php
Description:
This PR adds unit tests for the
wp_print_theme_file_tree()function inwp-admin/includes/misc.php. These tests ensure that the function correctly outputs the hierarchical file list for the theme editor, handling current file highlighting, aria attributes, and nested folder structures.The tests cover:
Trac ticket: https://core.trac.wordpress.org/ticket/65178
AI Disclosure: