Changeset 47122 for trunk/tests/phpunit/tests/term/query.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/query.php
r46586 r47122 482 482 $terms = get_the_terms( $post_id, 'wptests_tax' ); 483 483 $this->assertEquals( array( $term_ids[0], $term_ids[1] ), wp_list_pluck( $terms, 'term_id' ) ); 484 // Flip the order 484 // Flip the order. 485 485 wp_set_object_terms( $post_id, array( $term_ids[1], $term_ids[0] ), 'wptests_tax' ); 486 486 $terms = get_the_terms( $post_id, 'wptests_tax' ); … … 512 512 $terms = wp_get_object_terms( $post_id, array( 'category', 'wptests_tax' ) ); 513 513 $this->assertEquals( array( $term_ids[0], $term_ids[1], 1 ), wp_list_pluck( $terms, 'term_id' ) ); 514 // Flip the order 514 // Flip the order. 515 515 wp_set_object_terms( $post_id, array( $term_ids[1], $term_ids[0] ), 'wptests_tax' ); 516 516 $terms = wp_get_object_terms( $post_id, array( 'category', 'wptests_tax' ) );
Note: See TracChangeset
for help on using the changeset viewer.