#39868 closed enhancement (fixed)
add unit tests for wp_validate_boolean() in function.php
Reported by: | pbearne | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
just some more unit tests
Attachments (3)
Change History (12)
#1
@
5 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 5.3
- Owner set to desrosj
- Status changed from new to reviewing
#3
@
5 years ago
Thanks for this, @pbearne!
It seems that there is already a class for testing wp_validate_boolean()
, but your data provider method has some additional scenarios that are not currently tested.
39868.diff combines the preexisting conditions with your added tests, replaces individual methods with a data provider method, and improves some of the documentation.
See #30238 for the original test class introduction.
This ticket was mentioned in Slack in #core-restapi by timothybjacobs. View the logs.
5 years ago
Note: See
TracTickets for help on using
tickets.
unit tests