Build/Test Tools: Reduce the use of unnecessary randomness in tests.

This increases the overall reliability of the tests.

Props johnillo

Fixes #37371


git-svn-id: https://develop.svn.wordpress.org/trunk@52389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-12-19 13:42:37 +00:00
parent 77757441a4
commit 029bea45b0
46 changed files with 250 additions and 241 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ class Tests_Rewrite extends WP_UnitTestCase {
public function test_url_to_postid_custom_post_type() {
delete_option( 'rewrite_rules' );
$post_type = rand_str( 12 );
$post_type = 'url_to_postid';
register_post_type( $post_type, array( 'public' => true ) );
$id = self::factory()->post->create( array( 'post_type' => $post_type ) );