function FormsFormStorageTestCase::testValidation

Tests validation when form storage is used.

File

modules/simpletest/tests/form.test, line 1302

Class

FormsFormStorageTestCase
Test the form storage on a multistep form.

Code

function testValidation() {
  $this->drupalPost('form_test/form-storage', array(
    'title' => '',
    'value' => 'value_is_set',
  ), 'Continue submit');
  $this->assertPattern('/value_is_set/', 'The input values have been kept.');
}

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