You are here

function FormValidationTestCase::testDisabledToken in Drupal 7

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

File

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

Class

FormValidationTestCase
Test form validation handlers.

Code

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