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

@@ -186,7 +186,7 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
* @ticket 19828
*/
function test_help_tabs_priority() {
$tab_1 = rand_str();
$tab_1 = 'tab1';
$tab_1_args = array(
'title' => 'Help!',
'id' => $tab_1,
@@ -195,7 +195,7 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
'priority' => 10,
);
$tab_2 = rand_str();
$tab_2 = 'tab2';
$tab_2_args = array(
'title' => 'Help!',
'id' => $tab_2,
@@ -203,7 +203,7 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
'callback' => false,
'priority' => 2,
);
$tab_3 = rand_str();
$tab_3 = 'tab3';
$tab_3_args = array(
'title' => 'help!',
'id' => $tab_3,
@@ -211,7 +211,7 @@ class Tests_Admin_includesScreen extends WP_UnitTestCase {
'callback' => false,
'priority' => 40,
);
$tab_4 = rand_str();
$tab_4 = 'tab4';
$tab_4_args = array(
'title' => 'help!',
'id' => $tab_4,