Make WordPress Core


Ignore:
Timestamp:
10/14/2015 09:23:03 PM (10 years ago)
Author:
boonebgorges
Message:

Create fewer fixtures in some tests.

See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/category.php

    r33681 r35162  
    2222    function test_get_all_category_ids() {
    2323        // create categories
    24         $this->factory->category->create_many(15);
     24        $this->factory->category->create_many( 2 );
    2525
    2626        // create new taxonomy to ensure not included
    2727        register_taxonomy( 'test_tax_cat', 'post' );
    2828        wp_insert_term( "test1", 'test_tax_cat' );
    29         wp_insert_term( "test2", 'test_tax_cat' );
    30         wp_insert_term( "test3", 'test_tax_cat' );
    3129
    3230        // Validate length is 1 + created due to uncategorized
    3331        $cat_ids = get_all_category_ids();
    34         $this->assertEquals( 16, count($cat_ids));
     32        $this->assertEquals( 3, count($cat_ids));
    3533    }
    3634
Note: See TracChangeset for help on using the changeset viewer.