Unit Tests: wrestle performance out of Tests_Auth by cloning the same user for a majority of the tests.

See #30017, #33968.


git-svn-id: https://develop.svn.wordpress.org/trunk@35171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-10-15 00:10:45 +00:00
parent 0cb7c0bd9f
commit c1b2a034d3
2 changed files with 68 additions and 70 deletions

View File

@@ -58,7 +58,7 @@ class Tests_Term_Cache extends WP_UnitTestCase {
$parent_id = 0;
$children = 0;
foreach ( range( 1, 99 ) as $i ) {
foreach ( range( 1, 9 ) as $i ) {
switch ( $step ) {
case 1:
$parent = wp_insert_term( 'Parent' . $i, $tax );