[buddypress-trac] [BuddyPress Trac] #8432: PHPUnit tests about media in WP Trunk (5.7 dev cycle)

buddypress-trac noreply at wordpress.org
Sat Feb 6 18:17:36 UTC 2021


#8432: PHPUnit tests about media in WP Trunk (5.7 dev cycle)
------------------------------+-----------------------
 Reporter:  imath             |      Owner:  imath
     Type:  defect (bug)      |     Status:  assigned
 Priority:  normal            |  Milestone:  7.2.0
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  has-patch
------------------------------+-----------------------
 If you look at this [https://travis-
 ci.org/github/buddypress/BuddyPress/jobs/757732958 log file] from Travis
 CI, you'll see that it gets 4 errors with PHP 5.6 and WP Trunk.

 If you look at this [https://travis-
 ci.org/github/buddypress/BuddyPress/jobs/757732949 other log file] from
 Travis CI, you'll see that it gets 1 error with PHP > 5.6 and WP Trunk.

 This happens when testing against WP Trunk because of this
 [https://core.trac.wordpress.org/changeset/50170/ commit]. Now when you
 don't have the `WP_RUN_CORE_TESTS` constant set to true, errors about
 `exif_read_data()` and `getimagesize()` are not silenced anymore. I've
 tested defining this constant, it's worse, we get 43 failing tests.

 I've been looking for an explanation about why `exif_read_data()` is
 generating an error in PHP 5.6 and not in newer PHP version. After looking
 for some time about it, it looks like PHP 5.6 has an unresolved bug about
 it :(

 To fix the `getimagesize()` case, we simply need to put files into the
 `/wp-uploads` directory,
 `test_extract_images_from_content_with_galleries_variant_ids()` wasn't so
 I've edited it into the attached patch.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8432>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list