Make WordPress Core


Ignore:
Timestamp:
12/19/2021 01:42:37 PM (3 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/term/getTermField.php

    r52010 r52389  
    9292
    9393    public function test_get_term_field_name() {
    94         $name = rand_str( 15 );
     94        $name = 'baz';
    9595
    9696        $term = self::factory()->term->create_and_get(
     
    107107
    108108    public function test_get_term_field_slug_when_slug_is_set() {
    109         $slug = rand_str( 15 );
     109        $slug = 'baz';
    110110
    111111        $term = self::factory()->term->create_and_get(
     
    122122
    123123    public function test_get_term_field_slug_when_slug_falls_back_from_name() {
    124         $name = rand_str( 15 );
     124        $name = 'baz';
    125125
    126126        $term = self::factory()->term->create_and_get(
     
    157157
    158158    public function test_get_term_field_description() {
    159         $desc = wpautop( rand_str() );
     159        $desc = wpautop( 'baz' );
    160160
    161161        $term = self::factory()->term->create_and_get(
Note: See TracChangeset for help on using the changeset viewer.