Make WordPress Core

Opened 3 months ago

Closed 8 weeks ago

Last modified 8 weeks ago

#60270 closed task (blessed) (fixed)

PHPunit tests for sanitize_hex_color

Reported by: pbearne's profile pbearne Owned by: swissspidy's profile swissspidy
Milestone: 6.5 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch has-unit-tests
Focuses: Cc:

Description


Change History (4)

This ticket was mentioned in PR #5880 on WordPress/wordpress-develop by @pbearne.


3 months ago
#1

  • Keywords has-patch has-unit-tests added

This commit introduces a set of PHPUnit tests for the sanitize_hex_color function. These tests cover a large variety of possible color inputs, ensuring the function behaves as expected under a multitude of scenarios. It is designed to improve error detection and overall function reliability.

#2 @swissspidy
8 weeks ago

  • Owner set to swissspidy
  • Resolution set to fixed
  • Status changed from new to closed

In 57726:

Build/Test Tools: Add unit tests for sanitize_hex_color().

Props pbearne.
Fixes #60270.

#4 @swissspidy
8 weeks ago

  • Milestone changed from Awaiting Review to 6.5
  • Type changed from defect (bug) to task (blessed)
Note: See TracTickets for help on using tickets.