Build/Test Tools: Remove many unnecessary calls to rand_str() which can, in theory, fail at random. Static strings are much more appropriate.

See #37371


git-svn-id: https://develop.svn.wordpress.org/trunk@38382 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2016-08-26 20:21:30 +00:00
parent 6eaa56f3d4
commit e795f6da1d
16 changed files with 68 additions and 68 deletions

View File

@@ -10,7 +10,7 @@ class Tests_Term_WpInsertTerm extends WP_UnitTestCase {
_clean_term_filters();
// insert one term into every post taxonomy
// otherwise term_ids and term_taxonomy_ids might be identical, which could mask bugs
$term = rand_str();
$term = 'seed_term';
foreach(get_object_taxonomies('post') as $tax)
wp_insert_term( $term, $tax );
}
@@ -20,7 +20,7 @@ class Tests_Term_WpInsertTerm extends WP_UnitTestCase {
register_taxonomy( $taxonomy, 'post' );
// a new unused term
$term = rand_str();
$term = 'term';
$this->assertNull( term_exists($term) );
$initial_count = wp_count_terms( $taxonomy );