[wp-trac] [WordPress Trac] #33968: Improve performance of Unit Tests for 4.4
WordPress Trac
noreply at wordpress.org
Sat Oct 3 20:54:13 UTC 2015
#33968: Improve performance of Unit Tests for 4.4
------------------------------+-----------------------
Reporter: jorbin | Owner: jorbin
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+-----------------------
Comment (by DrewAPicture):
In [changeset:"34810"]:
{{{
#!CommitTicketReference repository="" revision="34810"
Tests: Permalink Structures Phase II: DRY up logic for setting permalink
structures in test methods.
Renames `reset_permalinks()` to `set_permalink_structure()` (mimicking
`$wp_rewrite->set_permalink_structure()`) and allows it to accept an
optional permalink structure. In this way, we can double dip using it to
both set and reset the permalink structure from anywhere.
Removes alot of duplicated code from tests.
See #33968.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33968#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list