buddypress/tests/phpunit/assets
Mathieu Viet f9c29a0ba1 PHPUnit: fix failing tests about media
Since WP [https://core.trac.wordpress.org/browser/trunk?rev=50170 50170] revision, errors about `getimagesize()` and `exif_read_data()` are not silenced anymore. We must now make sure to write media files where they should be for these two functions.

Tests involving `exif_read_data()` will be skipped from now on when testing against PHP 5.6 as no matter the image you use, you'll always get an `Illegal IDF size` error. It appears to be a bug with this version of PHP.

Fixes #8432 (7.0 branch)


git-svn-id: https://buddypress.svn.wordpress.org/branches/7.0@12841 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2021-02-06 20:39:28 +00:00
..
templates Pass extra args to template loading files. 2020-09-19 18:19:45 +00:00
attachment-extensions.php Allow class extending the BP_Attachment class to get the original WordPress upload dir within their upload_dir_filter() method. 2015-10-06 23:53:33 +00:00
bp-rest-api-controllers.php Prepare the inclusion of the BP REST API remaining endpoints 2020-03-31 11:33:35 +00:00
canola.jpg PHPUnit: fix failing tests about media 2021-02-06 20:39:28 +00:00
group-extensions.php Groups: Make sure BP_Group_Extension::widget_display() can be used 2016-06-27 03:07:47 +00:00
invitations-extensions.php Groups: Avoid a PHP 8.0 deprecated notice about optional function arg. 2020-11-19 12:50:44 +00:00
phpunit-wp-config.php Build/Test Tools: include @wordpress/env into BuddyPress 2020-08-30 17:53:06 +00:00
test-image-large.jpg PHPUnit: fix failing tests about media 2021-02-06 20:39:28 +00:00
upside-down.jpg Add Unit Tests for BP_Attachment_Avatar->shrink() and BP_Attachment_Cover_Image->fit() methods. 2015-10-03 21:55:08 +00:00