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:
John Blackbourn 2015-09-28 16:27:18 +00:00
parent 8823432749
commit 06caa4bb37

View File

@ -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 );