#46631 closed defect (bug) (fixed)
Unit test for get_status_header_desc();
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | has-patch has-unit-tests dev-feedback |
Focuses: | Cc: |
Description
Just the missing unit test for get_status_header_desc() from the function.php file
Attachments (3)
Change History (8)
#3
@
6 years ago
Thanks for the patch!
Since the function is just an array of labels without any complex logic, I don't see a point in duplicating the entire array in the test.
I think we could just make sure the function returns an empty string if $code
is not found, or a non-empty string otherwise, as stated in the documentation.
Note: See
TracTickets for help on using
tickets.
patch with unit test