Changeset 64804
- Timestamp:
- 10/27/2026 05:48:06 PM (3 days ago)
- Location:
- trunk/tests/phpunit/tests/customize
- Files:
-
- 4 edited
-
manager.php (modified) (8 diffs)
-
nav-menu-item-setting.php (modified) (4 diffs)
-
setting.php (modified) (1 diff)
-
widgets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r64657 r64804 422 422 $title = 'Hello World'; 423 423 $wp_customize->set_post_value( 'blogname', $title ); 424 $this->assertNot Equals( $title, get_option( 'blogname' ) );424 $this->assertNotSame( $title, get_option( 'blogname' ) ); 425 425 $wp_customize->wp_loaded(); 426 426 $this->assertFalse( $wp_customize->is_preview() ); … … 451 451 452 452 // Verify that the found post ID was cached under the given UUID, not the manager's UUID. 453 $this->assertNot Equals( $post_id, $wp_customize->find_changeset_post_id( $wp_customize->changeset_uuid() ) );453 $this->assertNotSame( $post_id, $wp_customize->find_changeset_post_id( $wp_customize->changeset_uuid() ) ); 454 454 } 455 455 … … 535 535 ); 536 536 $this->assertTrue( $wp_customize->autosaved() ); 537 $this->assertNot Equals( $data, $wp_customize->changeset_data() );537 $this->assertNotSame( $data, $wp_customize->changeset_data() ); 538 538 $this->assertSame( 539 539 array_merge( … … 801 801 $this->assertSame( $previous_blogname, $changeset_data['blogname']['value'] ); 802 802 $this->assertArrayNotHasKey( 'starter_content', $changeset_data['blogname'] ); 803 $this->assertNot Equals( $previous_blogdescription, $changeset_data['blogdescription']['value'] );803 $this->assertNotSame( $previous_blogdescription, $changeset_data['blogdescription']['value'] ); 804 804 $this->assertArrayHasKey( 'starter_content', $changeset_data['blogdescription'] ); 805 805 … … 813 813 $this->assertSame( 'auto-draft', get_post( $posts_by_name['about'] )->post_status ); 814 814 $this->assertSame( 'auto-draft', get_post( $posts_by_name['waffles'] )->post_status ); 815 $this->assertNot Equals( $changeset_data['blogname']['value'], get_option( 'blogname' ) );815 $this->assertNotSame( $changeset_data['blogname']['value'], get_option( 'blogname' ) ); 816 816 $r = $wp_customize->save_changeset_post( array( 'status' => 'publish' ) ); 817 817 $this->assertIsArray( $r ); … … 1088 1088 $this->assertSame( 'auto-draft', get_post( $post_id )->post_status ); 1089 1089 $this->assertSame( $date, get_post( $post_id )->post_date_gmt ); 1090 $this->assertNot Equals( 'Changeset Title', get_option( 'blogname' ) );1090 $this->assertNotSame( 'Changeset Title', get_option( 'blogname' ) ); 1091 1091 $this->assertArrayHasKey( 'setting_validities', $r ); 1092 1092 … … 1170 1170 $this->assertWPError( $r['setting_validities']['bar_unknown'] ); 1171 1171 $saved_data = json_decode( get_post( $post_id )->post_content, true ); 1172 $this->assertNot Equals( $previous_saved_data, $saved_data );1172 $this->assertNotSame( $previous_saved_data, $saved_data ); 1173 1173 $this->assertSame( 'Non-Transactional \o/ <script>unsanitized</script>', $saved_data['blogname']['value'] ); 1174 1174 … … 1722 1722 1723 1723 $post = get_post( $changeset_post_id ); 1724 $this->assertNot Equals( $post->post_date, $original_post_date );1724 $this->assertNotSame( $post->post_date, $original_post_date ); 1725 1725 } 1726 1726 -
trunk/tests/phpunit/tests/customize/nav-menu-item-setting.php
r64654 r64804 457 457 $setting->preview(); 458 458 $preview_items = wp_get_nav_menu_items( $menu_id ); 459 $this->assertNot Equals( count( $current_items ), count( $preview_items ) );459 $this->assertNotSame( count( $current_items ), count( $preview_items ) ); 460 460 461 461 $last_item = array_pop( $preview_items ); … … 506 506 $setting->preview(); 507 507 $preview_items = wp_get_nav_menu_items( $menu_id ); 508 $this->assertNot Equals( count( $current_items ), count( $preview_items ) );508 $this->assertNotSame( count( $current_items ), count( $preview_items ) ); 509 509 $this->assertContains( $delete_item_id, wp_list_pluck( $current_items, 'db_id' ) ); 510 510 } … … 767 767 $setting->save(); 768 768 $preview_items = wp_get_nav_menu_items( $menu_id ); 769 $this->assertNot Equals( count( $current_items ), count( $preview_items ) );769 $this->assertNotSame( count( $current_items ), count( $preview_items ) ); 770 770 771 771 $last_item = array_pop( $preview_items ); … … 833 833 $setting->save(); 834 834 $preview_items = wp_get_nav_menu_items( $menu_id ); 835 $this->assertNot Equals( count( $current_items ), count( $preview_items ) );835 $this->assertNotSame( count( $current_items ), count( $preview_items ) ); 836 836 $this->assertContains( $delete_item_id, wp_list_pluck( $current_items, 'db_id' ) ); 837 837 -
trunk/tests/phpunit/tests/customize/setting.php
r64649 r64804 602 602 switch_to_blog( $blog_id ); 603 603 $this->assertFalse( $setting->is_current_blog_previewed() ); 604 $this->assertNot Equals( $post_value, $setting->value() );605 $this->assertNot Equals( $post_value, get_option( $name ) );604 $this->assertNotSame( $post_value, $setting->value() ); 605 $this->assertNotSame( $post_value, get_option( $name ) ); 606 606 restore_current_blog(); 607 607 } -
trunk/tests/phpunit/tests/customize/widgets.php
r64061 r64804 834 834 835 835 $filtered_params = $this->manager->widgets->filter_dynamic_sidebar_params( $params ); 836 $this->assertNot Equals( $params, $filtered_params );836 $this->assertNotSame( $params, $filtered_params ); 837 837 ob_start(); 838 838 do_action( 'dynamic_sidebar_after', 'foo' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)