[wp-trac] [WordPress Trac] #38688: Tests Audit: some tests can fail when the date changes

WordPress Trac noreply at wordpress.org
Sun Nov 27 00:07:50 UTC 2016


#38688: Tests Audit: some tests can fail when the date changes
-------------------------------------------+-----------------------------
 Reporter:  pento                          |       Owner:  johnbillion
     Type:  defect (bug)                   |      Status:  closed
 Priority:  low                            |   Milestone:  Future Release
Component:  Build/Test Tools               |     Version:
 Severity:  minor                          |  Resolution:  fixed
 Keywords:  good-first-bug has-unit-tests  |     Focuses:
-------------------------------------------+-----------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39363"]:
 {{{
 #!CommitTicketReference repository="" revision="39363"
 Build/Test Tools: When testing the output of `wp_list_pages()`, use a
 known and fixed date for each post so the tests don't fail when the date
 changes between the beginning and end of a test.

 Props xrmx
 Fixes #38688
 }}}

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


More information about the wp-trac mailing list