Avoid using assertNotFalse()
which is only available in phpunit >= 4.0.0
See #33070 git-svn-id: https://develop.svn.wordpress.org/trunk@34664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8823432749
commit
06caa4bb37
@ -141,7 +141,7 @@ class Tests_Post_Thumbnail_Template extends WP_UnitTestCase {
|
||||
|
||||
set_post_thumbnail( $post, $this->attachment_id );
|
||||
|
||||
$this->assertNotFalse( get_the_post_thumbnail_url( $post->ID ) );
|
||||
$this->assertTrue( false !== get_the_post_thumbnail_url( $post->ID ) );
|
||||
|
||||
$deleted = wp_delete_post( $post->ID, true );
|
||||
$this->assertNotEmpty( $deleted );
|
||||
|
Loading…
Reference in New Issue
Block a user