[wp-trac] [WordPress Trac] #42903: Speed up tests for `wp_list_pages()`

WordPress Trac noreply at wordpress.org
Thu Dec 14 17:34:26 UTC 2017


#42903: Speed up tests for `wp_list_pages()`
------------------------------+-----------------------------
 Reporter:  Frank Klein       |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 The fixtures in `Tests_List_Pages` are (re)created in the `setUp()` method
 before every test run. Additionally, they rely on hardcoded post ids.

 The attached patch uses shared fixtures, and dynamic data. It also
 contains smaller changes to get around having to align all variable
 declarations in a method, which looks weird.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42903>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list