WordPress.org

Make WordPress Core

Ticket #48177: 48177.patch

File 48177.patch, 844 bytes (added by dkarfa, 8 months ago)

Patch

  • tests/phpunit/tests/category.php

     
    1515        }
    1616
    1717        /**
    18          * Validate get_all_category_ids
    19          *
    20          * @expectedDeprecated get_all_category_ids
    21          */
    22         function test_get_all_category_ids() {
    23                 // create categories
    24                 self::factory()->category->create_many( 2 );
    25 
    26                 // create new taxonomy to ensure not included
    27                 register_taxonomy( 'test_tax_cat', 'post' );
    28                 wp_insert_term( 'test1', 'test_tax_cat' );
    29 
    30                 // Validate length is 1 + created due to uncategorized
    31                 $cat_ids = get_all_category_ids();
    32                 $this->assertEquals( 3, count( $cat_ids ) );
    33         }
    34 
    35         /**
    3618         * Validate get_category_by_slug function
    3719         */
    3820        function test_get_category_by_slug() {