Repository navigation
Tests: Cover wp_get_tooltip_helper() - #15794
devmuhib009 wants to merge 2 commits into
Conversation
See #65819. Props devmuhib009.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
huzaifaalmesbah
left a comment
There was a problem hiding this comment.
Thanks for the patch, @devmuhib009! Great coverage for wp_get_tooltip_helper() testing tooltip markup, dashicons, and aria labels.
Per #65819 comment 1521, test-only changes now need their own Trac ticket in the component of the code under test rather than using #65819.
For wp_get_tooltip_helper() in src/wp-includes/general-template.php, the component is General (or Accessibility).
Could you please:
- Open a dedicated Trac ticket under General (or Accessibility) with
has-patchandhas-unit-testskeywords and link this PR. - Update the
Trac ticket:URL in this PR's description. - Update the
@ticket 65819annotations inwpGetTooltipHelper.phpwith the new ticket ID.
AI Review: Gemini 3.8 Flash
See #66618. Props devmuhib009.
Description
Adds unit tests for the
wp_get_tooltip_helper()function insrc/wp-includes/general-template.php.The tests cover:
popovertargetandaria-haspopup="dialog".WP_HTML_Tag_Processor.Test-only change.
Testing Instructions
Trac ticket: https://core.trac.wordpress.org/ticket/66618