buddypress/tests/phpunit
David Cavins 0f39447a28 Ensure cached data is cleared in BP_XProfile_ProfileData::delete_data_for_user().
Data was being deleted in bulk using a direct SQL
query, bypassing the `xprofile_data_before_delete`
and `xprofile_data_after_delete` actions, resulting in
stale data persisting in the xprofile cache. This
change uses `xprofile_delete_field_data()` to delete
the user's data so that the action hooks are called.

Props dd32, r-a-y, imath.

Fixes #8388.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@12781 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2020-11-11 19:23:17 +00:00
..
assets Pass extra args to template loading files. 2020-09-19 18:19:45 +00:00
includes Build/Test Tools: include @wordpress/env into BuddyPress 2020-08-30 17:53:06 +00:00
testcases Ensure cached data is cleared in BP_XProfile_ProfileData::delete_data_for_user(). 2020-11-11 19:23:17 +00:00
bootstrap.php Build/Test Tools: include @wordpress/env into BuddyPress 2020-08-30 17:53:06 +00:00
codecoverage.xml Travis-CI: disable xdebug globally and switch travis:codecoverage to use xdebug instead of phpdbg. 2016-08-08 13:36:32 +00:00
env.multisite.xml Build/Test Tools: include @wordpress/env into BuddyPress 2020-08-30 17:53:06 +00:00
env.xml Build/Test Tools: include @wordpress/env into BuddyPress 2020-08-30 17:53:06 +00:00
multisite.xml Tests: Fix missing 'name' attribute warning for PHPUnit 7. 2020-06-16 04:34:24 +00:00