WordPress.org

Make WordPress Core

Ticket #34560: 34560.14-tests.diff

File 34560.14-tests.diff, 689 bytes (added by mikeyarce, 6 months ago)
  • tests/phpunit/tests/customize/manager.php

     
    16461646
    16471647                // Verify that autosave happened.
    16481648                $autosave_revision = wp_get_post_autosave( $changeset_post_id, get_current_user_id() );
    1649                 $this->assertInstanceOf( 'WP_Post', $autosave_revision );
     1649                $this->assertInstanceOf( 'stdClass', $autosave_revision );
    16501650                $this->assertContains( 'Draft Title', get_post( $changeset_post_id )->post_content );
    16511651                $this->assertContains( 'Autosave Title', $autosave_revision->post_content );
    16521652        }