summaryrefslogtreecommitdiffstats
path: root/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/src/Tests/Ajax/ElementValidationTest.php')
-rw-r--r--core/modules/system/src/Tests/Ajax/ElementValidationTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/modules/system/src/Tests/Ajax/ElementValidationTest.php b/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
index 81ed62d..a6e9daa 100644
--- a/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
+++ b/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
@@ -28,11 +28,10 @@ class ElementValidationTest extends AjaxTestBase {
* Ajax-enabled field fails due to the required field being empty.
*/
function testAjaxElementValidation() {
- $web_user = $this->drupalCreateUser();
$edit = array('drivertext' => t('some dumb text'));
// Post with 'drivertext' as the triggering element.
- $post_result = $this->drupalPostAjaxForm('ajax_validation_test', $edit, 'drivertext');
+ $this->drupalPostAjaxForm('ajax_validation_test', $edit, 'drivertext');
// Look for a validation failure in the resultant JSON.
$this->assertNoText(t('Error message'), 'No error message in resultant JSON');
$this->assertText('ajax_forms_test_validation_form_callback invoked', 'The correct callback was invoked');
@@ -41,7 +40,7 @@ class ElementValidationTest extends AjaxTestBase {
$edit = array('drivernumber' => 12345);
// Post with 'drivernumber' as the triggering element.
- $post_result = $this->drupalPostAjaxForm('ajax_validation_test', $edit, 'drivernumber');
+ $this->drupalPostAjaxForm('ajax_validation_test', $edit, 'drivernumber');
// Look for a validation failure in the resultant JSON.
$this->assertNoText(t('Error message'), 'No error message in resultant JSON');
$this->assertText('ajax_forms_test_validation_number_form_callback invoked', 'The correct callback was invoked');