You are here

function VudNodeWebTestCase::testVotingDetails in Vote Up/Down 6.3

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

Test voting details tab.

File

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

Class

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

Code

function testVotingDetails() {
  $this
    ->enableMinimalVoting();
  $this
    ->drupalLogin($this->admin_user);
  $node = $this
    ->drupalCreateNode(array(
    'type' => 'story',
  ));
  $this
    ->drupalLogin($this->simple_user);
  $this
    ->drupalGet("node/{$node->nid}");
  $this
    ->clickLink(t('Voting details'));
  $this
    ->assertNoRaw('<td>', t('No voting details records found on the node.'));
}