You are here

function VudNodeWebTestCase::enableMinimalVoting in Vote Up/Down 6.2

Same name and namespace in other branches
  1. 6.3 vud_node/vud_node.test \VudNodeWebTestCase::enableMinimalVoting()
  2. 7 vud_node/vud_node.test \VudNodeWebTestCase::enableMinimalVoting()

Enable Vote Up/Down for Story node types with updown widget.

2 calls to VudNodeWebTestCase::enableMinimalVoting()
VudNodeWebTestCase::testViewWidget in vud_node/vud_node.test
Test visibility of the widget.
VudNodeWebTestCase::testVotingDetails in vud_node/vud_node.test
Test voting details tab.

File

vud_node/vud_node.test, line 64
Test file for Vote Up/Down Node.

Class

VudNodeWebTestCase
@file Test file for Vote Up/Down Node.

Code

function enableMinimalVoting() {
  $this
    ->drupalLogin($this->admin_user);
  $edit = array(
    'vud_node_types[story]' => TRUE,
    'vud_node_widget' => 'updown',
  );
  $this
    ->drupalPost('admin/settings/voteupdown/node', $edit, t('Save configuration'));
  $this
    ->assertText(t('The configuration options have been saved.'));
}