mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user