Changeset 48937 for trunk/tests/phpunit/tests/term/getTheTerms.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTheTerms.php
r46586 r48937 23 23 // Cache should be empty after a set. 24 24 $tt_1 = wp_set_object_terms( $post_id, $terms_1, $this->taxonomy ); 25 $this->assert Equals( 3, count( $tt_1 ) );25 $this->assertSame( 3, count( $tt_1 ) ); 26 26 $this->assertFalse( wp_cache_get( $post_id, $this->taxonomy . '_relationships' ) ); 27 27 … … 44 44 // Cache should be empty after a set. 45 45 $tt_2 = wp_set_object_terms( $post_id, $terms_2, $this->taxonomy ); 46 $this->assert Equals( 2, count( $tt_2 ) );46 $this->assertSame( 2, count( $tt_2 ) ); 47 47 $this->assertFalse( wp_cache_get( $post_id, $this->taxonomy . '_relationships' ) ); 48 48 } … … 63 63 64 64 $terms = get_the_terms( $post_id, 'post_tag' ); 65 $this->assert Equals( $tag_id, $terms[0]->term_id );66 $this->assert Equals( 'My Amazing Tag', $terms[0]->description );65 $this->assertSame( $tag_id, $terms[0]->term_id ); 66 $this->assertSame( 'My Amazing Tag', $terms[0]->description ); 67 67 68 68 $_updated = wp_update_term( … … 75 75 76 76 $_new_term = get_term( $tag_id, 'post_tag' ); 77 $this->assert Equals( $tag_id, $_new_term->term_id );78 $this->assert Equals( 'This description is even more amazing!', $_new_term->description );77 $this->assertSame( $tag_id, $_new_term->term_id ); 78 $this->assertSame( 'This description is even more amazing!', $_new_term->description ); 79 79 80 80 $terms = get_the_terms( $post_id, 'post_tag' ); 81 $this->assert Equals( $tag_id, $terms[0]->term_id );82 $this->assert Equals( 'This description is even more amazing!', $terms[0]->description );81 $this->assertSame( $tag_id, $terms[0]->term_id ); 82 $this->assertSame( 'This description is even more amazing!', $terms[0]->description ); 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.