From 77300bcc9202c1ae36d9ef97b1499db494fa9bab Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Mon, 13 Jul 2015 03:33:38 +0000 Subject: [PATCH] Tests: Check downsized images against dynamic rather than static filename when original is expected. See #32971. git-svn-id: https://develop.svn.wordpress.org/trunk@33188 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/attachments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/post/attachments.php b/tests/phpunit/tests/post/attachments.php index f33e7cd816..7633fd1f89 100644 --- a/tests/phpunit/tests/post/attachments.php +++ b/tests/phpunit/tests/post/attachments.php @@ -68,12 +68,12 @@ class Tests_Post_Attachments extends WP_UnitTestCase { // medium and full size will both point to the original $downsize = image_downsize($id, 'medium'); - $this->assertEquals( 'test-image.jpg', basename($downsize[0]) ); + $this->assertEquals( basename( $upload['file'] ), basename($downsize[0]) ); $this->assertEquals( 50, $downsize[1] ); $this->assertEquals( 50, $downsize[2] ); $downsize = image_downsize($id, 'full'); - $this->assertEquals( 'test-image.jpg', basename($downsize[0]) ); + $this->assertEquals( basename( $upload['file'] ), basename($downsize[0]) ); $this->assertEquals( 50, $downsize[1] ); $this->assertEquals( 50, $downsize[2] );