diff --git a/tests/phpunit/tests/post.php b/tests/phpunit/tests/post.php index 93af2b7281..62fbd7bc81 100644 --- a/tests/phpunit/tests/post.php +++ b/tests/phpunit/tests/post.php @@ -302,6 +302,8 @@ class Tests_Post extends WP_UnitTestCase { 'post_excerpt' => 'foo😐bat', ); + wp_set_current_user( self::$editor_id ); + edit_post( $data ); $post = get_post( $post_id );