You are here

protected function OgSubscribe::assertOgPendingMember in Organic groups 6.2

Assert the specified user is a pending member of the specified group.

Parameters

$account: User object.

$group: Group node object.

Return value

TRUE if user is a pending group member.

1 call to OgSubscribe::assertOgPendingMember()
OgSubscribe::_testWebUserSubscribe in tests/og.subscribe.test
Test current user subscription to a group.

File

tests/og.subscribe.test, line 196

Class

OgSubscribe

Code

protected function assertOgPendingMember($account, $group) {
  $vars = array(
    '%user' => theme('username', $account),
    '%group' => $group->title,
    '@selective' => $this->selective_labels[$group->og_selective],
  );
  $message = t('%user is a pending member of @selective group %group', $vars);
  return $this
    ->assertTrue(og_is_pending_member($group->nid, $account->uid), $message);
}