Make WordPress Core

Changeset 31457


Ignore:
Timestamp:
02/13/2015 11:33:56 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Use more descriptive names for register_post_type() and register_taxonomy() tests with too long and too short names.

see #31134, #31135.

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

Legend:

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

    r31450 r31457  
    2525         * @expectedIncorrectUsage register_post_type
    2626         */
    27         function test_register_post_type_length_long() {
     27        function test_register_post_type_with_too_long_name() {
    2828                // post type too long
    2929                $this->assertInstanceOf( 'WP_Error', register_post_type( 'abcdefghijklmnopqrstuvwxyz0123456789' ) );
    … …  
    3535         * @expectedIncorrectUsage register_post_type
    3636         */
    37         function test_register_post_type_length_short() {
     37        function test_register_post_type_with_empty_name() {
    3838                // post type too short
    3939                $this->assertInstanceOf( 'WP_Error', register_post_type( '' ) );
  • trunk/tests/phpunit/tests/taxonomy.php

    r31449 r31457  
    155155
    156156        /**
     157         * @ticket 21593
     158         *
     159         * @expectedIncorrectUsage register_taxonomy
     160         */
     161        function test_register_taxonomy_with_too_long_name() {
     162                $this->assertInstanceOf( 'WP_Error', register_taxonomy( 'abcdefghijklmnopqrstuvwxyz0123456789', 'post', array() ) );
     163        }
     164
     165        /**
    157166         * @ticket 31135
    158167         *
    159168         * @expectedIncorrectUsage register_taxonomy
    160169         */
    161         function test_register_short_taxonomy() {
     170        function test_register_taxonomy_with_empty_name() {
    162171                $this->assertInstanceOf( 'WP_Error', register_taxonomy( '', 'post', array() ) );
    163         }
    164 
    165         /**
    166          * @ticket 21593
    167          *
    168          * @expectedIncorrectUsage register_taxonomy
    169          */
    170         function test_register_long_taxonomy() {
    171                 $this->assertInstanceOf( 'WP_Error', register_taxonomy( 'abcdefghijklmnopqrstuvwxyz0123456789', 'post', array() ) );
    172172        }
    173173
Note: See TracChangeset for help on using the changeset viewer.