Add unit test for bp_group_has_invites()

This test merely checks to see that the $invites_template global is populated
correcltly with invitation-related info after the loop is initialized. It will
be used to ensure backward compatibility after any potential changes related to

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7984 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Save a variable when parsing default arguments in bp_group_has_invites()

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7985 cdf35c40-ae34-48e0-9cc9-0c9da1808c22