function PollTestCase::pollUpdate

7.x poll.test PollTestCase::pollUpdate($nid, $title, $edit)
2 calls to PollTestCase::pollUpdate()
PollBlockTestCase::testRecentBlock in drupal-7.x/modules/poll/poll.test
PollCreateTestCase::testPollClose in drupal-7.x/modules/poll/poll.test

File

drupal-7.x/modules/poll/poll.test, line 177
Tests for poll.module.

Class

PollTestCase

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.');
}