Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#60179 new enhancement

Add unit tests for wp_widgets_add_menu

Reported by: pbearne Owned by:
Priority: normal Milestone: Awaiting Review
Component: Widgets Version:
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses: tests

Description (last modified by desrosj)

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 (4)

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


3 years ago
#1

  • Keywords has-patch has-unit-tests added

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.

#2 @desrosj
2 years ago

  • Component Build/Test Tools → Widgets
  • Description modified (diff)
  • Summary PhpUnit test for wp_widgets_add_menu → Add unit tests for wp_widgets_add_menu
  • Type defect (bug) → enhancement

Since this is about adding tests and not a general build or test tooling change, I'm reassigning it to the relevant component.

#3 @desrosj
20 months ago

  • Focuses tests added

#4 @pbearne
3 months ago

#57224 was marked as a duplicate.

Note: See TracTickets for help on using tickets.