From 51b3eb592da2eb2d7f596bf4b7bca1e89e497354 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 27 Sep 2015 18:29:53 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/post/thumbnails.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/post/thumbnails.php b/tests/phpunit/tests/post/thumbnails.php index 52b88e758b..278eb13fd9 100644 --- a/tests/phpunit/tests/post/thumbnails.php +++ b/tests/phpunit/tests/post/thumbnails.php @@ -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();