Changeset 48422 for trunk/tests/phpunit/tests/ajax/CustomizeManager.php
- Timestamp:
- 07/10/2020 03:12:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/CustomizeManager.php
r48211 r48422 473 473 $this->assertEquals( 'draft', $this->_last_response_parsed['data']['changeset_status'] ); 474 474 $autosave_revision = wp_get_post_autosave( $post_id ); 475 $this->assertInstanceOf( ' WP_Post', $autosave_revision );475 $this->assertInstanceOf( 'stdClass', $autosave_revision ); 476 476 477 477 $this->assertContains( 'New Site Title', get_post( $post_id )->post_content ); … … 700 700 $this->assertNotWPError( $r ); 701 701 $autosave_revision = wp_get_post_autosave( $wp_customize->changeset_post_id() ); 702 $this->assertInstanceOf( ' WP_Post', $autosave_revision );702 $this->assertInstanceOf( 'stdClass', $autosave_revision ); 703 703 $this->assertContains( 'Foo', get_post( $wp_customize->changeset_post_id() )->post_content ); 704 704 $this->assertContains( 'Bar', $autosave_revision->post_content );
Note: See TracChangeset
for help on using the changeset viewer.