Opened 9 years ago
Closed 9 years ago
#36415 closed enhancement (fixed)
Unit tests for functions.php's get_weekstartend method
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 0.71 |
Component: | Date/Time | Keywords: | has-patch has-unit-tests dev-feedback |
Focuses: | Cc: |
Description
Test functions against get_weekstartend.
Tested scenarios:
1) No optional parameter is passed
2) Optional parameter is passed with the non-default option
3) start_of_week option is removed
4) Formatted time is provided from date function
5) No optional parameter is passed
Attachments (1)
Change History (7)
#5
@
9 years ago
- Owner set to boonebgorges
- Status changed from new to assigned
@pbearne Thanks for the patch!
The strtotime()
tests don't really test get_weekstartend()
, they test strtotime()
and date()
. I don't think we need to do that.
I'm going to add one or two additional tests, and change some wording. Otherwise looks good. Thanks!
Note: See
TracTickets for help on using
tickets.
Unit test