Changeset 48937 for trunk/tests/phpunit/tests/term/splitSharedTerm.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/splitSharedTerm.php
r46586 r48937 101 101 ); 102 102 103 $this->assert Equals( $this->terms['t2_child']['term_taxonomy_id'], $children[0]->term_taxonomy_id );103 $this->assertSame( $this->terms['t2_child']['term_taxonomy_id'], $children[0]->term_taxonomy_id ); 104 104 } 105 105 … … 116 116 ); 117 117 118 $this->assert Equals( $this->terms['t2_child']['term_taxonomy_id'], $children[0]->term_taxonomy_id );118 $this->assertSame( $this->terms['t2_child']['term_taxonomy_id'], $children[0]->term_taxonomy_id ); 119 119 } 120 120 … … 157 157 158 158 $t2_children = get_term_children( $t2['term_id'], 'wptests_tax_4' ); 159 $this->assert Equals( array( $new_term_id ), $t2_children );159 $this->assertSame( array( $new_term_id ), $t2_children ); 160 160 } 161 161 … … 181 181 ); 182 182 183 $this->assert Equals( $t1['term_id'], get_option( 'default_category', -1 ) );183 $this->assertSame( $t1['term_id'], get_option( 'default_category', -1 ) ); 184 184 185 185 $new_term_id = _split_shared_term( $t1['term_id'], $t1['term_taxonomy_id'] ); 186 186 187 187 $this->assertNotEquals( $new_term_id, $t1['term_id'] ); 188 $this->assert Equals( $new_term_id, get_option( 'default_category', -1 ) );188 $this->assertSame( $new_term_id, get_option( 'default_category', -1 ) ); 189 189 } 190 190 … … 253 253 254 254 $locations = get_nav_menu_locations(); 255 $this->assert Equals( $new_term_id, $locations['foo'] );255 $this->assertSame( $new_term_id, $locations['foo'] ); 256 256 } 257 257 … … 302 302 303 303 $menu_items = wp_get_nav_menu_items( $new_nav_menu_id ); 304 $this->assert Equals( array( $cat_menu_item ), wp_list_pluck( $menu_items, 'ID' ) );304 $this->assertSame( array( $cat_menu_item ), wp_list_pluck( $menu_items, 'ID' ) ); 305 305 } 306 306 … … 318 318 public function test_wp_get_split_term() { 319 319 $found = wp_get_split_term( $this->terms['t1']['term_id'], 'wptests_tax_3' ); 320 $this->assert Equals( $this->terms['t3']['term_id'], $found );320 $this->assertSame( $this->terms['t3']['term_id'], $found ); 321 321 } 322 322 }
Note: See TracChangeset
for help on using the changeset viewer.