Changeset 48939 for trunk/tests/phpunit/tests/customize/manager.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r48937 r48939 675 675 'page_for_posts', 676 676 ); 677 $this->assert EqualSets( $expected_setting_ids, array_keys( $changeset_values ) );677 $this->assertSameSets( $expected_setting_ids, array_keys( $changeset_values ) ); 678 678 679 679 foreach ( array( 'widget_text[2]', 'widget_meta[3]' ) as $setting_id ) { … … 743 743 $changeset_data = $wp_customize->changeset_data(); 744 744 // Auto-drafts should not get re-created and amended with each import. 745 $this->assert EqualSets( array_values( $posts_by_name ), $changeset_data['nav_menus_created_posts']['value'] );745 $this->assertSameSets( array_values( $posts_by_name ), $changeset_data['nav_menus_created_posts']['value'] ); 746 746 747 747 // Test that saving non-starter content on top of the changeset clears the starter_content flag. … … 871 871 'nested_array_theme_mod', 872 872 ); 873 $this->assert EqualSets( $expected_setting_ids, array_keys( $changeset_values ) );873 $this->assertSameSets( $expected_setting_ids, array_keys( $changeset_values ) ); 874 874 875 875 $this->assertSame( $existing_published_home_page_id, $changeset_values['array_option']['home_page_id'] ); … … 1612 1612 $this->assertSame( $save_counts[ $setting_id ] + 1, did_action( sprintf( 'customize_save_%s', $setting_id ) ), $setting_id ); 1613 1613 } 1614 $this->assert EqualSets( array( 'blogname', 'blogdescription', 'background_color', 'scratchpad' ), array_keys( $this->filtered_setting_current_user_ids ) );1614 $this->assertSameSets( array( 'blogname', 'blogdescription', 'background_color', 'scratchpad' ), array_keys( $this->filtered_setting_current_user_ids ) ); 1615 1615 $this->assertSame( $other_admin_user_id, $this->filtered_setting_current_user_ids['blogname'] ); 1616 1616 $this->assertSame( 0, $this->filtered_setting_current_user_ids['blogdescription'] ); … … 2222 2222 add_filter( 'customize_allowed_urls', array( $this, 'filter_customize_allowed_urls' ) ); 2223 2223 $allowed = $wp_customize->get_allowed_urls(); 2224 $this->assert EqualSets( $allowed, array( 'http://headless.example.com/', home_url( '/', 'http' ) ) );2224 $this->assertSameSets( $allowed, array( 'http://headless.example.com/', home_url( '/', 'http' ) ) ); 2225 2225 } 2226 2226 … … 3090 3090 $this->assertNotEmpty( $data ); 3091 3091 3092 $this->assert EqualSets( array( 'theme', 'url', 'browser', 'panels', 'sections', 'nonce', 'autofocus', 'documentTitleTmpl', 'previewableDevices', 'changeset', 'timeouts', 'dateFormat', 'timeFormat', 'initialClientTimestamp', 'initialServerDate', 'initialServerTimestamp', 'l10n' ), array_keys( $data ) );3092 $this->assertSameSets( array( 'theme', 'url', 'browser', 'panels', 'sections', 'nonce', 'autofocus', 'documentTitleTmpl', 'previewableDevices', 'changeset', 'timeouts', 'dateFormat', 'timeFormat', 'initialClientTimestamp', 'initialServerDate', 'initialServerTimestamp', 'l10n' ), array_keys( $data ) ); 3093 3093 $this->assertSame( $autofocus, $data['autofocus'] ); 3094 3094 $this->assertArrayHasKey( 'save', $data['nonce'] ); 3095 3095 $this->assertArrayHasKey( 'preview', $data['nonce'] ); 3096 3096 3097 $this->assert EqualSets(3097 $this->assertSameSets( 3098 3098 array( 3099 3099 'branching',
Note: See TracChangeset
for help on using the changeset viewer.