Opened 4 months ago
Last modified 4 months ago
#65185 new enhancement
Tests: Add unit tests for wp_color_scheme_settings()
| 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_color_scheme_settings() function in wp-admin/includes/misc.php. The tests will verify that the function correctly outputs the color scheme picker and manages the associated scripts and settings for the user profile.
Change History (2)
This ticket was mentioned in PR #11741 on WordPress/wordpress-develop by @pbearne.
4 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_color_scheme_settings()function inwp-admin/includes/misc.php. These tests ensure that the function correctly outputs the JavaScript configuration for admin color schemes, including appropriate icon color fallbacks when schemes are missing or partially defined.The tests cover:
Trac ticket: https://core.trac.wordpress.org/ticket/65185
AI Disclosure: