[buddypress-trac] [BuddyPress Trac] #7709: Unit Tests: Speed up multisite specific test
buddypress-trac
noreply at wordpress.org
Sun Mar 4 19:55:02 UTC 2018
#7709: Unit Tests: Speed up multisite specific test
------------------------------+---------------------
Reporter: r-a-y | Owner: netweb
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.0
Component: Build/Test Tools | Version: 2.2
Severity: normal | Resolution: fixed
Keywords: has-patch |
------------------------------+---------------------
Changes (by r-a-y):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"11880"]:
{{{
#!CommitTicketReference repository="" revision="11880"
Unit Tests: Improve performance of multisite directory page test.
The unit test in question was introduced in #6226.
Basically, the test needed to match a specific WordPress post ID.
Previously, the test did this by creating posts in a loop(!) until it
matched the post ID. However, there is a parameter in `wp_insert_post()`
that allows you to set the post ID from the get-go - `'import_id'`.
This commit switches to using the `'import_id'` parameter to create the
WordPress post and should speed up this test considerably.
Fixes #7709.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7709#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list