Opened 10 months ago
Last modified 4 weeks ago
#60179 new enhancement
Add unit tests for wp_widgets_add_menu
Reported by: | pbearne | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Widgets | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description (last modified by )
Since this is about adding tests and not a general build or test tooling change, I'm reassigning it to the relevant component.
Change History (2)
This ticket was mentioned in PR #5830 on WordPress/wordpress-develop by @pbearne.
10 months ago
#1
- Keywords has-patch has-unit-tests added
#2
@
4 weeks ago
- Component changed from Build/Test Tools to Widgets
- Description modified (diff)
- Summary changed from PhpUnit test for wp_widgets_add_menu to Add unit tests for wp_widgets_add_menu
- Type changed from defect (bug) to enhancement
Since this is about adding tests and not a general build or test tooling change, I'm reassigning it to the relevant component.
Note: See
TracTickets for help on using
tickets.
This commit introduces PHPUnit tests for the wp_widgets_add_menu function. The tests are implemented in a new file, wpWidgetsAddMenu.php, inside the tests/phpunit/tests/functions/ directory and cover different cases and scenarios to ensure proper functionality of the wp_widgets_add_menu function.