Opened 9 years ago
Closed 9 years ago
#33750 closed enhancement (fixed)
Unit tests for is_new_day() and the_date()
Reported by: | johnbillion | Owned by: | jubstuff |
---|---|---|---|
Milestone: | 4.4 | Priority: | low |
Severity: | normal | Version: | |
Component: | Date/Time | Keywords: | needs-unit-tests good-first-bug has-patch |
Focuses: | template | Cc: |
Description
I recall, in days gone by, coming across a bug with is_new_day()
and/or the_date()
whereby they weren't behaving as expected.
Some unit tests should be introduced for both functions to ensure they work correctly.
Attachments (1)
Change History (5)
#2
@
9 years ago
- Keywords has-patch added
I replaced the test in the_date
, using is_new_day
and attached tests for the_date
#3
@
9 years ago
- Milestone changed from Awaiting Review to 4.4
- Owner set to jubstuff
- Status changed from new to assigned
Awesome, people were very productive during today's Contributor Day at WordCamp Switzerland!
Assigning this to jubstuff to mark this good first bug as "claimed".
@johnbillion Are there any more cases that should be covered in the test?
Note: See
TracTickets for help on using
tickets.
is_new_day()
is nowhere used in core, so onlythe_date()
is relevant here. It could leverageis_new_day()
though.