buddypress/tests/testcases
Boone B Gorges 837e5f4d4e Use strict type checking when setting default 'include' value in BP_User_Query
Using the empty() check resulted in problems when empty arrays were passed into
BP_User_Query as the 'include' parameter, such as when querying for a user's
friend requests when the user did not have any - in these cases, all users
ended up being returned.

Fixes #5071

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7239 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2013-06-25 01:18:24 +00:00
..
activity In test_get_with_display_comments_stream(), don't use bp_activity_new_comment() 2013-06-04 18:13:29 +00:00
admin In BP_UnitTestCase::create_user(), default to last_activity one year ago 2013-06-07 11:16:17 +00:00
blogs In blogs tests, reset current user after testcases 2013-06-07 11:22:26 +00:00
core In test_avatars_on_non_root_blog(), use go_to_root() to establish root blog 2013-06-07 11:33:57 +00:00
friends Use $this->set_current_user() instead of wp_set_current_user() throughout tests 2013-05-09 13:19:50 +00:00
groups Adds is_confirmed param to BP_Group_Member_Query, defaulting to true 2013-06-24 18:59:22 +00:00
members Use strict type checking when setting default 'include' value in BP_User_Query 2013-06-25 01:18:24 +00:00
routing In test suite, factory->activity->create() should return an id, not an object 2013-05-09 14:11:52 +00:00
url Fixes test_bp_core_ajax_url() for new multisite unit test global manipulation 2013-05-13 14:25:08 +00:00