protected function OgSubscribe::assertNotOgMember in Organic groups 6.2
Assert the specified user is not a member of the specified group.
Parameters
$account: User object.
$group: Group node object.
Return value
TRUE if user is not a group member.
2 calls to OgSubscribe::assertNotOgMember()
- OgSubscribe::_testWebUserSubscribe in tests/
og.subscribe.test - Test current user subscription to a group.
- OgSubscribe::_testWebUserUnsubscribeOg in tests/
og.subscribe.test - Test user unsubscribed from a group.
File
- tests/
og.subscribe.test, line 156
Class
Code
protected function assertNotOgMember($account, $group) {
$vars = array(
'%user' => theme('username', $account),
'%group' => $group->title,
'@selective' => $this->selective_labels[$group->og_selective],
);
$message = t('%user is not a member of @selective group %group', $vars);
return $this
->assertFalse($this
->_checkOgMembershipStatus($account, $group), $message);
}