[wp-trac] [WordPress Trac] #21653: Introduce current_date()

WordPress Trac noreply at wordpress.org
Wed Feb 19 21:22:07 UTC 2014


#21653: Introduce current_date()
------------------------------+------------------
 Reporter:  johnbillion       |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  low               |   Milestone:  3.9
Component:  Date/Time         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------
Changes (by danielbachhuber):

 * milestone:  Awaiting Review => 3.9


Comment:

 > I doubt current_time() has unit tests, but it'd be nice.

 How would you recommend mocking `time()` such that it's unit testable?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21653#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list