updated core to 7.54
This commit is contained in:
@@ -690,6 +690,14 @@ class FormValidationTestCase extends DrupalWebTestCase {
|
||||
$this->assertText('The form has become outdated. Copy any unsaved work in the form below');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that a form with a disabled CSRF token can be validated.
|
||||
*/
|
||||
function testDisabledToken() {
|
||||
$this->drupalPost('form-test/validate-no-token', array(), 'Save');
|
||||
$this->assertText('The form_test_validate_no_token form has been submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests partial form validation through #limit_validation_errors.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user