function PollTestCase::pollUpdate

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.