Make WordPress Core


Ignore:
Timestamp:
07/27/2022 03:41:30 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r53785 r53787  
    148148        self::factory()->post->create(
    149149            array(
    150                 'post_type'   => $post_type,
    151                 'post_author' => self::$editor_id,
     150                'post_type' => $post_type,
    152151            )
    153152        );
     
    168167            3,
    169168            array(
    170                 'post_type'   => $post_type,
    171                 'post_author' => self::$editor_id,
     169                'post_type' => $post_type,
    172170            )
    173171        );
Note: See TracChangeset for help on using the changeset viewer.