Make WordPress Core


Ignore:
Timestamp:
12/19/2021 01:42:37 PM (2 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Reduce the use of unnecessary randomness in tests.

This increases the overall reliability of the tests.

Props johnillo

Fixes #37371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/wp/getComment.php

    r52010 r52389  
    1919            'comment_author_url'   => 'http://example.com/',
    2020            'comment_author_email' => 'example@example.com',
    21             'comment_content'      => rand_str( 100 ),
     21            'comment_content'      => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    2222        );
    2323        self::$parent_comment_id   = wp_insert_comment( self::$parent_comment_data );
     
    2929            'comment_author_email' => 'example@example.org',
    3030            'comment_parent'       => self::$parent_comment_id,
    31             'comment_content'      => rand_str( 100 ),
     31            'comment_content'      => 'Duis non neque cursus, commodo massa in, bibendum nisl.',
    3232        );
    3333        self::$child_comment_id   = wp_insert_comment( self::$child_comment_data );
Note: See TracChangeset for help on using the changeset viewer.