buddypress/tests/phpunit/testcases
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
..
activity Adapt BuddyPress to WP 5.1.0 multisite changes & deprecations 2020-03-31 02:45:13 +00:00
admin Retire Legacy Forums. 2017-12-08 00:22:09 +00:00
blogs i18n: improve translator comments for the "Active %s" string 2020-11-19 12:33:58 +00:00
core PHPUnit: fix failing tests about media 2021-02-06 20:39:28 +00:00
friends Don't delete user data on delete_user hook on Multisite. 2020-03-29 17:32:05 +00:00
groups Support status parameter in bp_has_groups(). 2020-10-09 13:25:47 +00:00
members i18n: improve translator comments for the "Active %s" string 2020-11-19 12:33:58 +00:00
messages Make sure Messages exports only include the ones sent by the user 2019-06-17 17:43:50 +00:00
notifications Don't delete user data on delete_user hook on Multisite. 2020-03-29 17:32:05 +00:00
routing Adapt BuddyPress to WP 5.1.0 multisite changes & deprecations 2020-03-31 02:45:13 +00:00
settings Improve sanitization of email notification settings. 2015-11-11 03:22:53 +00:00
testsuite Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
xprofile Ensure cached data is cleared in BP_XProfile_ProfileData::delete_data_for_user(). 2020-11-11 19:23:17 +00:00