mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user