[wp-trac] [WordPress Trac] #58163: Media Tests for Attachments and Images

WordPress Trac noreply at wordpress.org
Fri Apr 21 05:18:14 UTC 2023


#58163: Media Tests for Attachments and Images
--------------------------------------+------------------------------
 Reporter:  Howdy_McGee               |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Media                     |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by kebbet):

 The linked Pull Request at GitHub runs the test suit on commit, so linking
 to the latest test results, failures on `PHP 8.1` and `PHP 8.2`.

 https://github.com/WordPress/wordpress-develop/actions/runs/4754147962


 {{{
 There was 1 error:

 1) Tests_Media::test_get_image_tag_empty_src
 ltrim(): Passing null to parameter #1 ($string) of type string is
 deprecated

 /var/www/src/wp-includes/formatting.php:4392
 /var/www/src/wp-includes/media.php:396
 /var/www/tests/phpunit/tests/media.php:4038
 /var/www/vendor/bin/phpunit:123
 }}}

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


More information about the wp-trac mailing list