Make WordPress Core


Ignore:
Timestamp:
11/09/2016 12:01:42 AM (9 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Utilise assertWPError() and assertNotWPError() in more places.

See #38716

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r38810 r39174  
    382382        // Test both return paths with or without WP_Error
    383383        $insert_post = wp_insert_post( $post, true );
    384         $this->assertTrue( is_wp_error( $insert_post ), 'Did not get a WP_Error back from wp_insert_post' );
     384        $this->assertWPError( $insert_post );
    385385        $this->assertEquals( 'invalid_date', $insert_post->get_error_code() );
    386386
Note: See TracChangeset for help on using the changeset viewer.