3 | | Here are some unit tests you can use as a starting point: https://buddypress.trac.wordpress.org/browser/tags/2.2.0/tests/phpunit/testcases/core/class-bp-user-query.php#L410 Tests needed: (a) show that 'member_type__in' works, (b) show that 'member_type' overrides 'member_type__in', (c) show that 'member_type__not_in' returns members both members from types other than those specified, as well as members that have no member type at all, (d) show that 'member_type__not_in' and 'member_type' work together in a sane way, (e) show that 'member_type__not_in' returns an empty set in the proper cases. :-D |
| 3 | Here are some unit tests you can use as a starting point: https://buddypress.trac.wordpress.org/browser/tags/2.2.0/tests/phpunit/testcases/core/class-bp-user-query.php#L410 Tests needed: (a) show that `'member_type__in'` works, (b) show that `'member_type'` overrides `'member_type__in'`, (c) show that `'member_type__not_in'` returns members both members from types other than those specified, as well as members that have no member type at all, (d) show that `'member_type__not_in'` and `'member_type'` work together in a sane way, (e) show that `'member_type__not_in'` returns an empty set in the proper cases. :-D |