#42903 closed enhancement (fixed)
Speed up tests for `wp_list_pages()`
Reported by: | Frank Klein | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
<3 - thanks so much for the patch, @Frank Klein.