1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-22 20:56:55 +08:00
buddypress/tests/phpunit/testcases/core/functions
r-a-y 1203c86cd8 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.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@11880 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2018-03-04 19:55:02 +00:00
..
bpCoreGetDirectoryPageId.php Introduce bp_core_get_directory_page_id(). 2016-05-14 04:59:12 +00:00
bpCoreGetDirectoryPageIds.php Unit Tests: Improve performance of multisite directory page test. 2018-03-04 19:55:02 +00:00
bpGetRefererPath.php Improve AJAX referer determination during URI parsing. 2015-02-25 14:56:18 +00:00
bpVerifyNonceRequest.php General: Fix a couple of inline docs spelling mistakes. 2017-12-04 04:05:33 +00:00