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
This commit is contained in:
Jeremy Felt 2015-07-13 03:33:38 +00:00
parent 698faf3b17
commit 77300bcc92

View File

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