After [34629], update unit tests to reflect this change.

See #32093.


git-svn-id: https://develop.svn.wordpress.org/trunk@34633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-09-27 18:29:53 +00:00
parent f802fef76f
commit 51b3eb592d

View File

@ -76,7 +76,9 @@ class Tests_Post_Thumbnail_Template extends WP_UnitTestCase {
$this->assertEquals( '', get_the_post_thumbnail( $this->post ) );
set_post_thumbnail( $this->post, $this->attachment_id );
$expected = wp_get_attachment_image( $this->attachment_id, 'post-thumbnail', false, array( 'class' => 'attachment-post-thumbnail wp-post-image' ) );
$expected = wp_get_attachment_image( $this->attachment_id, 'post-thumbnail', false, array(
'class' => 'attachment-post-thumbnail size-post-thumbnail wp-post-image'
) );
$this->assertEquals( $expected, get_the_post_thumbnail( $this->post ) );
@ -102,7 +104,9 @@ class Tests_Post_Thumbnail_Template extends WP_UnitTestCase {
set_post_thumbnail( $this->post, $this->attachment_id );
$expected = wp_get_attachment_image( $this->attachment_id, 'post-thumbnail', false, array( 'class' => 'attachment-post-thumbnail wp-post-image' ) );
$expected = wp_get_attachment_image( $this->attachment_id, 'post-thumbnail', false, array(
'class' => 'attachment-post-thumbnail size-post-thumbnail wp-post-image'
) );
ob_start();
the_post_thumbnail();