Commit 2377e42b authored by idebr's avatar idebr Committed by alesr

#2831715 Unsubscribe confirm firm uses 'Remove' as button text.

parent d16275a0
...@@ -237,7 +237,7 @@ function og_ui_confirm_unsubscribe($form, &$form_state, $group_type, $group) { ...@@ -237,7 +237,7 @@ function og_ui_confirm_unsubscribe($form, &$form_state, $group_type, $group) {
$label = entity_label($group_type, $group); $label = entity_label($group_type, $group);
$url = entity_uri($group_type, $group); $url = entity_uri($group_type, $group);
return confirm_form($form, t('Are you sure you want to unsubscribe from the group %title?', array('%title' => $label)), $url, NULL, t('Remove'), t('Cancel')); return confirm_form($form, t('Are you sure you want to unsubscribe from the group %title?', array('%title' => $label)), $url, NULL, t('Unsubscribe'), t('Cancel'));
} }
/** /**
......
...@@ -199,7 +199,7 @@ class OgUiSubscribeTestCase extends DrupalWebTestCase { ...@@ -199,7 +199,7 @@ class OgUiSubscribeTestCase extends DrupalWebTestCase {
$this->drupalGet('node/' . $node->nid); $this->drupalGet('node/' . $node->nid);
$this->assertText(t('Unsubscribe from group'), t('Member gets correct unsubscribe text.')); $this->assertText(t('Unsubscribe from group'), t('Member gets correct unsubscribe text.'));
$this->clickLink(t('Unsubscribe from group')); $this->clickLink(t('Unsubscribe from group'));
$this->drupalPost(NULL, array() , t('Remove')); $this->drupalPost(NULL, array() , t('Unsubscribe'));
$this->assertFalse(og_is_member('node', $node->nid, 'user', $user2, array(OG_STATE_ACTIVE, OG_STATE_PENDING)), t('User unsubscribed from group.')); $this->assertFalse(og_is_member('node', $node->nid, 'user', $user2, array(OG_STATE_ACTIVE, OG_STATE_PENDING)), t('User unsubscribed from group.'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment