function OgUiManagePeopleTestCase::testOgUiDeleteMembership in Organic groups 7.2
Delete a single user's membership from group.
File
- og_ui/
og_ui.test, line 304
Class
Code
function testOgUiDeleteMembership() {
$this
->drupalLogin($this->user1);
// Group the user to the group.
$membership = og_group('entity_test', $this->entity->pid, array(
'entity' => $this->user2,
));
$this
->drupalPost('group/entity_test/' . $this->entity->pid . '/admin/people/delete-membership/' . $membership->id, array(), t('Remove'));
// Verify the membership was removed.
$this
->assertText('The membership was removed.');
}