[wp-unit-tests] [WordPress Unit Tests] #135: Test for the function image_make_intermediate_size()

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 13 20:07:12 UTC 2012


#135: Test for the function image_make_intermediate_size()
--------------------------+------------------
 Reporter:  markoheijnen  |       Owner:
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:
Component:  Images/EXIF   |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Changes (by kurtpayne):

 * cc: kurtpayne (removed)
 * component:  Admin Screen => Images/EXIF


Comment:

 How does this handle the cases where a single dimension is set to zero?

 I may be reading it wrong, but shouldn't WP_Error bubble up from resize
 and cause make_intemediate_size return false?  It looks like the
 assertions here look for an array.

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/135#comment:1>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list