Make WordPress Core

Ticket #32971: 32971.diff

File 32971.diff, 883 bytes (added by jeremyfelt, 11 years ago)
  • tests/phpunit/tests/post/attachments.php

     
    6868
    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] );
    7979