Changeset 48939 for trunk/tests/phpunit/tests/term/query.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/query.php
r48937 r48939 23 23 ); 24 24 25 $this->assert EqualSets( array( $term_2 ), $q->terms );25 $this->assertSameSets( array( $term_2 ), $q->terms ); 26 26 } 27 27 … … 41 41 ); 42 42 43 $this->assert EqualSets( array( $term_2 ), $q->terms );43 $this->assertSameSets( array( $term_2 ), $q->terms ); 44 44 } 45 45 … … 69 69 ); 70 70 71 $this->assert EqualSets( array( $terms[0] ), $q->terms );71 $this->assertSameSets( array( $terms[0] ), $q->terms ); 72 72 } 73 73 … … 103 103 ); 104 104 105 $this->assert EqualSets( array( $terms[0], $terms[2] ), $q->terms );105 $this->assertSameSets( array( $terms[0], $terms[2] ), $q->terms ); 106 106 } 107 107 … … 244 244 ); 245 245 246 $this->assert EqualSets( array( $t ), $query->terms );246 $this->assertSameSets( array( $t ), $query->terms ); 247 247 } 248 248 … … 266 266 ); 267 267 268 $this->assert EqualSets( array( $t ), $query->terms );268 $this->assertSameSets( array( $t ), $query->terms ); 269 269 } 270 270 … … 375 375 $found = $query->get_terms(); 376 376 377 $this->assert EqualSets( array( $terms[0] ), $found );377 $this->assertSameSets( array( $terms[0] ), $found ); 378 378 379 379 wp_set_object_terms( $p, array( $terms[1] ), 'wptests_tax_1' ); … … 388 388 $found = $query->get_terms(); 389 389 390 $this->assert EqualSets( array( $terms[1] ), $found );390 $this->assertSameSets( array( $terms[1] ), $found ); 391 391 } 392 392 … … 691 691 $expected = array( $terms[0], $terms[2] ); 692 692 693 $this->assert EqualSets( $expected, wp_list_pluck( $found, 'term_id' ) );693 $this->assertSameSets( $expected, wp_list_pluck( $found, 'term_id' ) ); 694 694 } 695 695 … … 728 728 $expected = array( $terms[0], $terms[2] ); 729 729 730 $this->assert EqualSets( $expected, wp_list_pluck( $found, 'term_id' ) );730 $this->assertSameSets( $expected, wp_list_pluck( $found, 'term_id' ) ); 731 731 } 732 732
Note: See TracChangeset
for help on using the changeset viewer.