buddypress/tests
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
..
phpunit Improve comparison consistency in BP_Friends_Friendship 2023-02-23 00:43:14 +00:00