Opened 5 months ago
Last modified 5 months ago
#65176 new enhancement
Tests: Add unit tests for wp_make_plugin_file_tree(
| Reported by: | pbearne | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | tests |
Description
This ticket adds unit tests for the wp_make_plugin_file_tree() function in wp-admin/includes/misc.php. This function is responsible for converting a flat list of plugin files into a tree structure for use in the plugin editor.
Change History (2)
This ticket was mentioned in PR #11724 on WordPress/wordpress-develop by @pbearne.
5 months ago
#1
- Keywords has-patch has-unit-tests added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
…sc.php
Description:
This PR adds unit tests for the
wp_make_plugin_file_tree()function inwp-admin/includes/misc.php. These tests ensure that the function correctly converts a flat list of plugin file paths into a hierarchical tree structure, which is used for the file list in the plugin editor.The tests cover:
Trac ticket: https://core.trac.wordpress.org/ticket/65176
AI Disclosure: