Make WordPress Core


Ignore:
Timestamp:
03/20/2018 10:34:11 PM (6 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite.

Props birgire

Fixes #42065

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/CustomizeManager.php

    r42615 r42863  
    646646
    647647        $_POST['dismiss_autosave'] = $_GET['dismiss_autosave'] = $_REQUEST['dismiss_autosave'] = true;
    648         $this->assertNotInstanceOf( 'WP_Error', $r );
     648        $this->assertNotWPError( $r );
    649649        $this->assertFalse( wp_get_post_autosave( $wp_customize->changeset_post_id() ) );
    650650        $this->assertContains( 'Foo', get_post( $wp_customize->changeset_post_id() )->post_content );
     
    666666            )
    667667        );
    668         $this->assertNotInstanceOf( 'WP_Error', $r );
     668        $this->assertNotWPError( $r );
    669669        $autosave_revision = wp_get_post_autosave( $wp_customize->changeset_post_id() );
    670670        $this->assertInstanceOf( 'WP_Post', $autosave_revision );
Note: See TracChangeset for help on using the changeset viewer.