1 form.test FormValidationTestCase::testDisabledToken()

Tests that a form with a disabled CSRF token can be validated.

File

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

Class

FormValidationTestCase
Test form validation handlers.

Code

function testDisabledToken() {
  $this->backdropPost('form-test/validate-no-token', array(), 'Save');
  $this->assertText('The form_test_validate_no_token form has been submitted successfully.');
}