mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-18 10:14:30 +00:00
Build/Test Tools: Begin eliminating unnecessary randomness in tests.
Although unlikely, clashes in randomly generated strings could cause unexpected failures. In addition, most randomness is entirely unnecessary, is bad practice, and increases test time (however small it may be). See #37371 git-svn-id: https://develop.svn.wordpress.org/trunk@38762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -28,7 +28,6 @@ class Tests_General_DocumentTitle extends WP_UnitTestCase {
|
||||
$this->post_id = $this->factory->post->create( array(
|
||||
'post_author' => $this->author_id,
|
||||
'post_status' => 'publish',
|
||||
'post_content' => rand_str(),
|
||||
'post_title' => 'test_title',
|
||||
'post_type' => 'post',
|
||||
'post_date' => '2015-09-22 18:52:17',
|
||||
|
||||
Reference in New Issue
Block a user