WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36589


Ignore:
Timestamp:
04/19/2016 09:10:09 AM (4 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36589 – Description

    initial v1  
    11`Tests_Image_Header::test_create_attachment_object()` and `Tests_Image_Header::test_insert_cropped_attachment()` are passing `http://localhost/foo-cropped.png` to `Custom_Image_Header::create_attachment_object()`. This method is using `getimagesize()` for the URL. I'm not sure if this a config issue but it seems like the timeout is pretty high so the tests are taking a minute to complete.
    22
    3 Output by SpeedTrapListener:
     3Output of PHPunit:
    44
    55{{{
    6  1. 60031ms to run Tests_WP_Site_Icon:test_create_attachment_object
    7  2. 60030ms to run Tests_WP_Site_Icon:test_insert_cropped_attachment
     61) Tests_Image_Header::test_create_attachment_object
     7ImagickException: getimagesize(http://localhost/foo-cropped.png): failed to open stream: Connection refused
     8
     9src/wp-admin/custom-header.php:1160
     10tests/phpunit/tests/image/header.php:116
     11
     122) Tests_Image_Header::test_insert_cropped_attachment
     13ImagickException: getimagesize(http://localhost/foo-cropped.png): failed to open stream: Connection refused
     14
     15src/wp-admin/custom-header.php:1160
     16tests/phpunit/tests/image/header.php:132
    817}}}