Changeset 35162 for trunk/tests/phpunit/tests/category.php
- Timestamp:
- 10/14/2015 09:23:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/category.php
r33681 r35162 22 22 function test_get_all_category_ids() { 23 23 // create categories 24 $this->factory->category->create_many( 15);24 $this->factory->category->create_many( 2 ); 25 25 26 26 // create new taxonomy to ensure not included 27 27 register_taxonomy( 'test_tax_cat', 'post' ); 28 28 wp_insert_term( "test1", 'test_tax_cat' ); 29 wp_insert_term( "test2", 'test_tax_cat' );30 wp_insert_term( "test3", 'test_tax_cat' );31 29 32 30 // Validate length is 1 + created due to uncategorized 33 31 $cat_ids = get_all_category_ids(); 34 $this->assertEquals( 16, count($cat_ids));32 $this->assertEquals( 3, count($cat_ids)); 35 33 } 36 34
Note: See TracChangeset
for help on using the changeset viewer.