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:
Sergey Biryukov
2022-07-27 15:41:30 +00:00
parent a9c64ad629
commit c52486b995
2 changed files with 2 additions and 24 deletions
+2 -4
View File
@@ -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,
)
);