Changeset 51462 for trunk/tests/phpunit/tests/ajax/CustomizeManager.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/CustomizeManager.php
r51331 r51462 475 475 $this->assertInstanceOf( 'WP_Post', $autosave_revision ); 476 476 477 $this->assert Contains( 'New Site Title', get_post( $post_id )->post_content );478 $this->assert Contains( 'Autosaved Site Title', $autosave_revision->post_content );477 $this->assertStringContainsString( 'New Site Title', get_post( $post_id )->post_content ); 478 $this->assertStringContainsString( 'Autosaved Site Title', $autosave_revision->post_content ); 479 479 } 480 480 … … 680 680 $this->assertNotWPError( $r ); 681 681 $this->assertFalse( wp_get_post_autosave( $wp_customize->changeset_post_id() ) ); 682 $this->assert Contains( 'Foo', get_post( $wp_customize->changeset_post_id() )->post_content );682 $this->assertStringContainsString( 'Foo', get_post( $wp_customize->changeset_post_id() )->post_content ); 683 683 684 684 // Since no autosave yet, confirm no action. … … 701 701 $autosave_revision = wp_get_post_autosave( $wp_customize->changeset_post_id() ); 702 702 $this->assertInstanceOf( 'WP_Post', $autosave_revision ); 703 $this->assert Contains( 'Foo', get_post( $wp_customize->changeset_post_id() )->post_content );704 $this->assert Contains( 'Bar', $autosave_revision->post_content );703 $this->assertStringContainsString( 'Foo', get_post( $wp_customize->changeset_post_id() )->post_content ); 704 $this->assertStringContainsString( 'Bar', $autosave_revision->post_content ); 705 705 706 706 // Confirm autosave gets deleted.
Note: See TracChangeset
for help on using the changeset viewer.