Changeset 48937 for trunk/tests/phpunit/tests/term/query.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/query.php
r47122 r48937 481 481 wp_set_object_terms( $post_id, array( $term_ids[0], $term_ids[1] ), 'wptests_tax' ); 482 482 $terms = get_the_terms( $post_id, 'wptests_tax' ); 483 $this->assert Equals( array( $term_ids[0], $term_ids[1] ), wp_list_pluck( $terms, 'term_id' ) );483 $this->assertSame( array( $term_ids[0], $term_ids[1] ), wp_list_pluck( $terms, 'term_id' ) ); 484 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' ); 487 $this->assert Equals( array( $term_ids[1], $term_ids[0] ), wp_list_pluck( $terms, 'term_id' ) );487 $this->assertSame( array( $term_ids[1], $term_ids[0] ), wp_list_pluck( $terms, 'term_id' ) ); 488 488 } 489 489 … … 511 511 wp_set_object_terms( $post_id, array( $term_ids[0], $term_ids[1] ), 'wptests_tax' ); 512 512 $terms = wp_get_object_terms( $post_id, array( 'category', 'wptests_tax' ) ); 513 $this->assert Equals( array( $term_ids[0], $term_ids[1], 1 ), wp_list_pluck( $terms, 'term_id' ) );513 $this->assertSame( array( $term_ids[0], $term_ids[1], 1 ), wp_list_pluck( $terms, 'term_id' ) ); 514 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' ) ); 517 $this->assert Equals( array( $term_ids[1], $term_ids[0], 1 ), wp_list_pluck( $terms, 'term_id' ) );517 $this->assertSame( array( $term_ids[1], $term_ids[0], 1 ), wp_list_pluck( $terms, 'term_id' ) ); 518 518 } 519 519
Note: See TracChangeset
for help on using the changeset viewer.