mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
Build/Test Tools: Add assertNotFalse() method to WP_UnitTestCase and use it where appropriate.
Props peterwilsoncc. Fixes #39219. git-svn-id: https://develop.svn.wordpress.org/trunk@39919 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -194,7 +194,7 @@ class Tests_Post_Thumbnail_Template extends WP_UnitTestCase {
|
||||
function test_get_the_post_thumbnail_url_with_invalid_post() {
|
||||
set_post_thumbnail( self::$post, self::$attachment_id );
|
||||
|
||||
$this->assertTrue( false !== get_the_post_thumbnail_url( self::$post->ID ) );
|
||||
$this->assertNotFalse( get_the_post_thumbnail_url( self::$post->ID ) );
|
||||
|
||||
$deleted = wp_delete_post( self::$post->ID, true );
|
||||
$this->assertNotEmpty( $deleted );
|
||||
|
||||
Reference in New Issue
Block a user