[wp-trac] [WordPress Trac] #48317: Unit Test Failures

WordPress Trac noreply at wordpress.org
Thu Aug 27 13:43:50 UTC 2020


#48317: Unit Test Failures
-------------------------------+------------------------------
 Reporter:  mjmaterna          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Build/Test Tools   |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Looking at the log, it seems like most of the failures were addressed in
 #31432, and some are related to #41345.

 There are also some media-related errors, but I can't reproduce them
 locally:
 {{{
 There were 5 errors:

 1)
 Tests_Image_Intermediate_Size::test_get_intermediate_size_with_small_size_array_fallback
 Undefined index: thumbnail

 C:\Users\mjmat\Source\Repos\wordpress-
 develop\tests\phpunit\tests\image\intermediateSize.php:256

 2) Tests_Media::test_wp_calculate_image_srcset_with_edits
 Undefined index: medium

 C:\Users\mjmat\Source\Repos\wordpress-
 develop\tests\phpunit\tests\media.php:1534

 3) Tests_Media::test_wp_calculate_image_sizes
 Undefined index: thumbnail

 C:\Users\mjmat\Source\Repos\wordpress-
 develop\tests\phpunit\tests\media.php:1926

 4) WP_Test_REST_Attachments_Controller::test_get_item_sizes
 Error: Cannot use object of type stdClass as array

 C:\Users\mjmat\Source\Repos\wordpress-develop\tests\phpunit\tests\rest-api
 \rest-attachments-controller.php:575

 5) WP_Test_REST_Attachments_Controller::test_get_item_sizes_with_no_url
 Error: Cannot use object of type stdClass as array

 C:\Users\mjmat\Source\Repos\wordpress-develop\tests\phpunit\tests\rest-api
 \rest-attachments-controller.php:603
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48317#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list