Changeset 25551 for trunk/tests/phpunit/tests/term.php
- Timestamp:
- 09/21/2013 04:47:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r25334 r25551 506 506 $this->assertEquals( get_term( $term1['term_id'], 'category' ), $term2 ); 507 507 } 508 509 function test_wp_count_terms() { 510 $count = wp_count_terms( 'category', array( 'hide_empty' => true ) ); 511 // the terms inserted in setUp aren't attached to any posts, so should return 0 512 // this previously returned 2 513 $this->assertEquals( 0, $count ); 514 } 508 515 }
Note: See TracChangeset
for help on using the changeset viewer.