You are here

function ValidationTest::testDisabledToken in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Form/ValidationTest.php \Drupal\system\Tests\Form\ValidationTest::testDisabledToken()

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

File

core/modules/system/src/Tests/Form/ValidationTest.php, line 80
Contains \Drupal\system\Tests\Form\ValidationTest.

Class

ValidationTest
Tests form processing and alteration via form validation handlers.

Namespace

Drupal\system\Tests\Form

Code

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