Make WordPress Core


Ignore:
Timestamp:
10/09/2016 01:29:04 AM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Continue eliminating randomness in tests.

See [38762]
See #37371

File:
1 edited

Legend:

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

    r38398 r38763  
    128128        $data = array(
    129129            'comment_post_ID' => self::$post_id,
    130             'comment_author' => rand_str(),
     130            'comment_author' => 'Comment Author',
    131131            'comment_author_url' => '',
    132132            'comment_author_email' => '',
    133133            'comment_type' => '',
    134             'comment_content' => rand_str(),
     134            'comment_content' => 'Comment',
    135135            'comment_date' => '2011-01-01 10:00:00',
    136136            'comment_date_gmt' => '2011-01-01 10:00:00',
     
    151151        $data = array(
    152152            'comment_post_ID'      => self::$post_id,
    153             'comment_author'       => rand_str(),
     153            'comment_author'       => 'Comment Author',
    154154            'comment_author_IP'    => '192.168.1.1',
    155155            'comment_author_url'   => '',
    156156            'comment_author_email' => '',
    157157            'comment_type'         => '',
    158             'comment_content'      => rand_str(),
     158            'comment_content'      => 'Comment',
    159159        );
    160160
     
    172172        $data = array(
    173173            'comment_post_ID'      => self::$post_id,
    174             'comment_author'       => rand_str(),
     174            'comment_author'       => 'Comment Author',
    175175            'comment_author_IP'    => '',
    176176            'comment_author_url'   => '',
    177177            'comment_author_email' => '',
    178178            'comment_type'         => '',
    179             'comment_content'      => rand_str(),
     179            'comment_content'      => 'Comment',
    180180        );
    181181
     
    193193        $data = array(
    194194            'comment_post_ID'      => self::$post_id,
    195             'comment_author'       => rand_str(),
     195            'comment_author'       => 'Comment Author',
    196196            'comment_author_IP'    => '',
    197197            'comment_author_url'   => '',
     
    199199            'comment_agent'        => 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53',
    200200            'comment_type'         => '',
    201             'comment_content'      => rand_str(),
     201            'comment_content'      => 'Comment',
    202202        );
    203203
     
    215215        $data = array(
    216216            'comment_post_ID'      => self::$post_id,
    217             'comment_author'       => rand_str(),
     217            'comment_author'       => 'Comment Author',
    218218            'comment_author_IP'    => '',
    219219            'comment_author_url'   => '',
     
    221221            'comment_agent'        => 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16 Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.4pre) Gecko/20070511 Camino/1.6pre',
    222222            'comment_type'         => '',
    223             'comment_content'      => rand_str(),
     223            'comment_content'      => 'Comment',
    224224        );
    225225
     
    237237        $data = array(
    238238            'comment_post_ID'      => self::$post_id,
    239             'comment_author'       => rand_str(),
     239            'comment_author'       => 'Comment Author',
    240240            'comment_author_IP'    => '',
    241241            'comment_author_url'   => '',
     
    243243            'comment_agent'        => '',
    244244            'comment_type'         => '',
    245             'comment_content'      => rand_str(),
     245            'comment_content'      => 'Comment',
    246246        );
    247247
     
    257257        $data = array(
    258258            'comment_post_ID' => self::$post_id,
    259             'comment_author' => rand_str(),
     259            'comment_author' => 'Comment Author',
    260260            'comment_author_url' => '',
    261261            'comment_author_email' => '',
     
    539539        $data = array(
    540540            'comment_post_ID'      => $post,
    541             'comment_author'       => rand_str(),
     541            'comment_author'       => 'Comment Author',
    542542            'comment_author_url'   => '',
    543543            'comment_author_email' => '',
    544544            'comment_type'         => '',
    545             'comment_content'      => rand_str(),
     545            'comment_content'      => 'Comment',
    546546        );
    547547        wp_new_comment( $data );
     
    589589        $data = array(
    590590            'comment_post_ID'      => $post,
    591             'comment_author'       => rand_str(),
     591            'comment_author'       => 'Comment Author',
    592592            'comment_author_url'   => '',
    593593            'comment_author_email' => '',
    594594            'comment_type'         => '',
    595             'comment_content'      => rand_str(),
     595            'comment_content'      => 'Comment',
    596596        );
    597597        wp_new_comment( $data );
     
    639639        $default_data = array(
    640640            'comment_post_ID'      => self::$post_id,
    641             'comment_author'       => rand_str(),
     641            'comment_author'       => 'Comment Author',
    642642            'comment_author_IP'    => '192.168.0.1',
    643643            'comment_agent'        => 'WRONG_AGENT',
     
    645645            'comment_author_email' => '',
    646646            'comment_type'         => '',
    647             'comment_content'      => rand_str(),
     647            'comment_content'      => 'Comment',
    648648        );
    649649
Note: See TracChangeset for help on using the changeset viewer.