function MultiStepNodeFormBasicOptionsTest::testMultiStepNodeFormBasicOptions
7.x node.test | MultiStepNodeFormBasicOptionsTest::testMultiStepNodeFormBasicOptions() |
Tests changing the default values of basic options to ensure they persist.
File
- drupal-7.x/
modules/ node/ node.test, line 2055 - Tests for node.module.
Class
- MultiStepNodeFormBasicOptionsTest
- Tests basic options of multi-step node forms.
Code
function testMultiStepNodeFormBasicOptions() {
$edit = array(
'title' => 'a',
'status' => FALSE,
'promote' => FALSE,
'sticky' => 1,
'choice[new:0][chtext]' => 'a',
'choice[new:1][chtext]' => 'a',
);
$this->drupalPost('node/add/poll', $edit, t('More choices'));
$this->assertNoFieldChecked('edit-status', 'status stayed unchecked');
$this->assertNoFieldChecked('edit-promote', 'promote stayed unchecked');
$this->assertFieldChecked('edit-sticky', 'sticky stayed checked');
}