Make WordPress Core


Ignore:
Timestamp:
10/26/2016 01:23:24 AM (9 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Continue eliminating randomness in tests.

See #37371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/wpPostType.php

    r37890 r38938  
    1414
    1515    public function test_add_supports_defaults() {
    16         $post_type        = rand_str();
     16        $post_type        = 'cpt';
    1717        $post_type_object = new WP_Post_Type( $post_type );
    1818
     
    2828
    2929    public function test_add_supports_custom() {
    30         $post_type        = rand_str();
     30        $post_type        = 'cpt';
    3131        $post_type_object = new WP_Post_Type( $post_type, array(
    3232            'supports' => array(
     
    5757        global $wp;
    5858
    59         $post_type        = rand_str();
     59        $post_type        = 'cpt';
    6060        $post_type_object = new WP_Post_Type( $post_type, array( 'rewrite' => false, 'query_var' => 'foobar' ) );
    6161        $post_type_object->add_rewrite_rules();
     
    7070        global $wp;
    7171
    72         $post_type        = rand_str();
     72        $post_type        = 'cpt';
    7373        $post_type_object = new WP_Post_Type( $post_type, array(
    7474            'public'    => true,
     
    9393        global $wp_rewrite;
    9494
    95         $post_type        = rand_str();
     95        $post_type        = 'cpt';
    9696        $post_type_object = new WP_Post_Type( $post_type, array( 'public' => true, 'rewrite' => true ) );
    9797
     
    107107
    108108    public function test_register_meta_boxes() {
    109         $post_type        = rand_str();
     109        $post_type        = 'cpt';
    110110        $post_type_object = new WP_Post_Type( $post_type, array( 'register_meta_box_cb' => '__return_false' ) );
    111111
     
    120120
    121121    public function test_adds_future_post_hook() {
    122         $post_type        = rand_str();
     122        $post_type        = 'cpt';
    123123        $post_type_object = new WP_Post_Type( $post_type );
    124124        $post_type_object->add_hooks();
     
    134134        global $wp_post_types;
    135135
    136         $post_type        = rand_str();
     136        $post_type        = 'cpt';
    137137        $post_type_object = new WP_Post_Type( $post_type, array( 'taxonomies' => array( 'post_tag' ) ) );
    138138
Note: See TracChangeset for help on using the changeset viewer.