WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/06/2017 06:19:02 PM (3 years ago)
Author:
swissspidy
Message:

Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate.

Props peterwilsoncc.
Fixes #39219.

Merges [39919] to the 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/tests/phpunit/tests/post/thumbnails.php

    r38938 r40388  
    195195        set_post_thumbnail( self::$post, self::$attachment_id );
    196196
    197         $this->assertTrue( false !== get_the_post_thumbnail_url( self::$post->ID ) );
     197        $this->assertNotFalse( get_the_post_thumbnail_url( self::$post->ID ) );
    198198
    199199        $deleted = wp_delete_post( self::$post->ID, true );
Note: See TracChangeset for help on using the changeset viewer.