function FormsFormStorageTestCase::testValidation in Drupal 7
Tests validation when form storage is used.
File
- modules/simpletest/ tests/ form.test, line 1198 
- 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.');
}