Make WordPress Core

Changeset 49974


Ignore:
Timestamp:
01/18/2021 03:26:29 AM (6 years ago)
Author:
peterwilsoncc
Message:

Tests: Remove references to post status public.

Replace invalid post status public with the valid status publish.

See #51802.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

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

    r49808 r49974  
    24502450        public function test_return_type_when_inserting_attachment_with_error_in_data() {
    24512451                $data = array(
    2452                         'post_status'  => 'public',
     2452                        'post_status'  => 'publish',
    24532453                        'post_content' => 'Attachment content',
    24542454                        'post_title'   => 'Attachment Title',
  • trunk/tests/phpunit/tests/post.php

    r49603 r49974  
    404404                $post = array(
    405405                        'post_author'  => self::$editor_id,
    406                         'post_status'  => 'public',
     406                        'post_status'  => 'publish',
    407407                        'post_content' => rand_str(),
    408408                        'post_title'   => rand_str(),
     
    786786                $post_data      = array(
    787787                        'post_author'  => self::$editor_id,
    788                         'post_status'  => 'public',
     788                        'post_status'  => 'publish',
    789789                        'post_content' => rand_str(),
    790790                        'post_title'   => $title,
     
    972972                        array(
    973973                                'post_author'  => self::$editor_id,
    974                                 'post_status'  => 'public',
     974                                'post_status'  => 'publish',
    975975                                'post_content' => rand_str(),
    976976                                'post_title'   => rand_str(),
     
    990990                        array(
    991991                                'post_author'  => self::$editor_id,
    992                                 'post_status'  => 'public',
     992                                'post_status'  => 'publish',
    993993                                'post_content' => rand_str(),
    994994                                'post_title'   => rand_str(),
     
    10111011                        array(
    10121012                                'post_author'  => self::$editor_id,
    1013                                 'post_status'  => 'public',
     1013                                'post_status'  => 'publish',
    10141014                                'post_content' => rand_str(),
    10151015                                'post_title'   => rand_str(),
     
    10331033                        array(
    10341034                                'post_author'  => self::$editor_id,
    1035                                 'post_status'  => 'public',
     1035                                'post_status'  => 'publish',
    10361036                                'post_content' => rand_str(),
    10371037                                'post_title'   => rand_str(),
Note: See TracChangeset for help on using the changeset viewer.