buddypress/tests/phpunit/testcases
Mathieu Viet d0ce6e0ce3 Improve comparison consistency in BP_Friends_Friendship
- Fix a bug introduced in [13092] making sure to cast IDs retrieved by `$wpdb->results()` as integers when comparing them to another integer (user ID).
- Use strong comparisons everywhere in the class.
- Add unit tests.

Props boonebgorges

Fixes #8844 (branch 11.0)



git-svn-id: https://buddypress.svn.wordpress.org/branches/11.0@13430 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2023-02-23 00:43:14 +00:00
..
activity Make sure an activity is created when adding a site from network admin 2022-10-23 02:21:19 +00:00
admin Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
blogs Make sure an activity is created when adding a site from network admin 2022-10-23 02:21:19 +00:00
core Silently introduce block support for Activity content 2022-11-19 10:26:02 +00:00
friends Improve comparison consistency in BP_Friends_Friendship 2023-02-23 00:43:14 +00:00
groups Eventually include inactive users in group's members count 2022-11-07 20:32:51 +00:00
members Add missing global cache groups 2022-10-06 22:14:05 +00:00
messages BP Messages: make sure Threads unread count is consistent 2022-10-11 19:10:58 +00:00
notifications Clear the user notification cache when bulk marking as unread items 2022-02-25 13:37:47 +00:00
routing Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +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 xProfile: allow the loop to fetch fields from multiple fields group 2022-11-08 06:27:01 +00:00