function MultiStepNodeFormBasicOptionsTest::testMultiStepNodeFormBasicOptions

Tests changing the default values of basic options to ensure they persist.

File

drupal/modules/node/node.test, line 2127
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');
}