Make WordPress Core

Opened 2 months ago

Last modified 4 weeks ago

#60389 new defect (bug)

PHP unit test for links_add_base_url

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


Change History (2)

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

2 months ago

  • Keywords has-patch has-unit-tests added

A new PHPUnit test class, Tests_formatting_linksAddBaseUrl, has been introduced to increase the test coverage for the links_add_base_url function. The class includes multiple test scenarios, examining different combinations of attributes to verify the correct functioning of the function.

#2 @jorbin
4 weeks ago

  • Keywords changes-requested added
  • Milestone changed from Awaiting Review to 6.6

Left a suggestion for additional test cases. PHPCS also needs a bit of attention.

Note: See TracTickets for help on using tickets.