2 calls to PollTestCase::pollUpdate()
PollBlockTestCase::testRecentBlock in modules/poll/poll.test
PollCreateTestCase::testPollClose in modules/poll/poll.test

File

modules/poll/poll.test, line 177
Tests for poll.module.

Class

PollTestCase
@file Tests for poll.module.

Code

function pollUpdate($nid, $title, $edit) {

  // Edit the poll node.
  $this
    ->drupalPost('node/' . $nid . '/edit', $edit, t('Save'));
  $this
    ->assertText(t('@type @title has been updated.', array(
    '@type' => node_type_get_name('poll'),
    '@title' => $title,
  )), 'Poll has been updated.');
}