function PollTestCase::pollUpdate
4 calls to PollTestCase::pollUpdate()
- PollBlockTestCase::testRecentBlock in drupal-7.x/
modules/ poll/ poll.test - PollBlockTestCase::testRecentBlock in drupal-7.x/
modules/ poll/ poll.test - PollCreateTestCase::testPollClose in drupal-7.x/
modules/ poll/ poll.test - PollCreateTestCase::testPollClose in drupal-7.x/
modules/ poll/ poll.test
Archivo
- drupal-7.x/
modules/ poll/ poll.test, line 177 - Tests for poll.module.
Class
Código
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.');
}