mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Tests: Don't unnecessarily set the author in some wp_insert_post() tests.
This aims to make the tests more specific. Setting the author appears to be redundant, as the as the authorship is out of scope for these particular tests. Follow-up to [66/tests], [84/tests], [167/tests], [296/tests], [412/tests], [496/tests], [1026/tests], [1323/tests], [25554], [33041], [34762], [35183]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@53787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -147,8 +147,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
|
||||
self::factory()->post->create(
|
||||
array(
|
||||
'post_type' => $post_type,
|
||||
'post_author' => self::$editor_id,
|
||||
'post_type' => $post_type,
|
||||
)
|
||||
);
|
||||
|
||||
@@ -167,8 +166,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
self::factory()->post->create_many(
|
||||
3,
|
||||
array(
|
||||
'post_type' => $post_type,
|
||||
'post_author' => self::$editor_id,
|
||||
'post_type' => $post_type,
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user