function FormsFormStorageTestCase::testValidation

7.x form.test FormsFormStorageTestCase::testValidation()

Tests validation when form storage is used.

File

drupal-7.x/modules/simpletest/tests/form.test, line 1090
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.');
}