mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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:
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user