Make WordPress Core

Changeset 33188


Ignore:
Timestamp:
07/13/2015 03:33:38 AM (9 years ago)
Author:
jeremyfelt
Message:

Tests: Check downsized images against dynamic rather than static filename when original is expected.

See #32971.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/attachments.php

    r32919 r33188  
    6969        // medium and full size will both point to the original
    7070        $downsize = image_downsize($id, 'medium');
    71         $this->assertEquals( 'test-image.jpg', basename($downsize[0]) );
     71        $this->assertEquals( basename( $upload['file'] ), basename($downsize[0]) );
    7272        $this->assertEquals( 50, $downsize[1] );
    7373        $this->assertEquals( 50, $downsize[2] );
    7474
    7575        $downsize = image_downsize($id, 'full');
    76         $this->assertEquals( 'test-image.jpg', basename($downsize[0]) );
     76        $this->assertEquals( basename( $upload['file'] ), basename($downsize[0]) );
    7777        $this->assertEquals( 50, $downsize[1] );
    7878        $this->assertEquals( 50, $downsize[2] );
Note: See TracChangeset for help on using the changeset viewer.