function FormsFormStorageTestCase::testValidation

Tests validation when form storage is used.

File

drupal/modules/simpletest/tests/form.test, line 1176
Unit tests for the Drupal Form API.

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