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 | | /** |