buddypress/tests/phpunit
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
..
assets Update all references from wp_parse_args to bp_parse_args. 2021-09-12 20:43:39 +00:00
includes Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
testcases Improve comparison consistency in BP_Friends_Friendship 2023-02-23 00:43:14 +00:00
bootstrap.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +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