1 form.test FormsFormStorageTestCase::testValidation()

Tests validation when form storage is used.

File

core/modules/simpletest/tests/form.test, line 1317
Unit tests for the Backdrop Form API.

Class

FormsFormStorageTestCase
Test the form storage on a multistep form.

Code

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