Changeset 47489 for branches/3.7/tests/phpunit/tests/term.php
- Timestamp:
- 03/22/2020 02:29:03 PM (4 years ago)
- Location:
- branches/3.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
-
branches/3.7/tests/phpunit/tests/term.php
r47343 r47489 388 388 } 389 389 390 private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {391 $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(392 'fields' => 'ids'393 ) );394 395 $this->assertEquals( $expected_term_ids, $assigned_term_ids );396 }397 398 390 function test_wp_set_post_categories() { 399 391 $post_id = $this->factory->post->create();
Note: See TracChangeset
for help on using the changeset viewer.