Changeset 47489 for branches/3.8
- Timestamp:
- 03/22/2020 02:29:03 PM (5 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
-
branches/3.8/tests/phpunit/tests/term.php
r47338 r47489 443 443 } 444 444 445 private function assertPostHasTerms( $post_id, $expected_term_ids, $taxonomy ) {446 $assigned_term_ids = wp_get_object_terms( $post_id, $taxonomy, array(447 'fields' => 'ids'448 ) );449 450 $this->assertEquals( $expected_term_ids, $assigned_term_ids );451 }452 453 445 function test_wp_set_post_categories() { 454 446 $post_id = $this->factory->post->create();
Note: See TracChangeset
for help on using the changeset viewer.