[wp-trac] [WordPress Trac] #52606: Investigate why the media test group errors when run on its own

WordPress Trac noreply at wordpress.org
Mon Feb 22 18:29:34 UTC 2021


#52606: Investigate why the media test group errors when run on its own
--------------------------+------------------------------
 Reporter:  johnbillion   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:  needs-unit-tests
  Focuses:                |
--------------------------+------------------------------
 When the `media` test group is run on its own it fails with errors.

 `composer test -- --group media`

 {{{
 There were 2 errors:

 1)
 Tests_Post_Attachments::test_wp_get_attachment_url_should_force_https_with_https_on_same_host_when_siteurl_is_non_ssl_but_ssl_is_available
 Undefined index: pagenow

 /var/www/build/wp-includes/post.php:6322
 /var/www/tests/phpunit/tests/post/attachments.php:359

 2)
 Tests_Post_Attachments::test_wp_get_attachment_url_with_https_on_same_host_when_siteurl_is_https
 Undefined index: pagenow

 /var/www/build/wp-includes/post.php:6322
 /var/www/tests/phpunit/tests/post/attachments.php:387
 }}}

 Notably these two tests do not error when they are run individually nor
 when they are run as part of the entire suite. They only error when the
 `media` group is run on its own.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52606>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list