- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menu-setting.php
r48937 r48939 203 203 $term = (array) wp_get_nav_menu_object( $menu_id ); 204 204 205 $this->assert EqualSets(205 $this->assertSameSets( 206 206 wp_array_slice_assoc( $value, array( 'name', 'description', 'parent' ) ), 207 207 wp_array_slice_assoc( $term, array( 'name', 'description', 'parent' ) ) … … 214 214 $this->assertSame( 1, $value['parent'] ); 215 215 $term = (array) wp_get_nav_menu_object( $menu_id ); 216 $this->assert EqualSets( $value, wp_array_slice_assoc( $term, array_keys( $value ) ) );216 $this->assertSameSets( $value, wp_array_slice_assoc( $term, array_keys( $value ) ) ); 217 217 218 218 $menu_object = wp_get_nav_menu_object( $menu_id ); … … 257 257 $this->assertNotEmpty( $term ); 258 258 $this->assertNotWPError( $term ); 259 $this->assert EqualSets( $post_value, wp_array_slice_assoc( $term, array_keys( $value ) ) );259 $this->assertSameSets( $post_value, wp_array_slice_assoc( $term, array_keys( $value ) ) ); 260 260 $this->assertSame( $menu_id, $term['term_id'] ); 261 261 $this->assertSame( $menu_id, $term['term_taxonomy_id'] ); … … 339 339 $this->assertSame( 0, $sanitized['parent'] ); 340 340 $this->assertTrue( $sanitized['auto_add'] ); 341 $this->assert EqualSets( array( 'name', 'description', 'parent', 'auto_add' ), array_keys( $sanitized ) );341 $this->assertSameSets( array( 'name', 'description', 'parent', 'auto_add' ), array_keys( $sanitized ) ); 342 342 343 343 $value['name'] = ' '; // Blank spaces. … … 386 386 $this->assertSame( $new_value[ $key ], $menu_object->$key ); 387 387 } 388 $this->assert EqualSets(388 $this->assertSameSets( 389 389 wp_array_slice_assoc( $new_value, array( 'name', 'description', 'parent' ) ), 390 390 wp_array_slice_assoc( (array) $menu_object, array( 'name', 'description', 'parent' ) ) … … 442 442 $menu = wp_get_nav_menu_object( $setting->term_id ); 443 443 unset( $post_value['auto_add'] ); 444 $this->assert EqualSets( $post_value, wp_array_slice_assoc( (array) $menu, array_keys( $post_value ) ) );444 $this->assertSameSets( $post_value, wp_array_slice_assoc( (array) $menu, array_keys( $post_value ) ) ); 445 445 446 446 $save_response = apply_filters( 'customize_save_response', array() );
Note: See TracChangeset
for help on using the changeset viewer.