diff --git a/core/modules/system/src/Tests/Ajax/AjaxFormPageCacheTest.php b/core/modules/system/src/Tests/Ajax/AjaxFormPageCacheTest.php index 9da0935..6578de4 100644 --- a/core/modules/system/src/Tests/Ajax/AjaxFormPageCacheTest.php +++ b/core/modules/system/src/Tests/Ajax/AjaxFormPageCacheTest.php @@ -83,4 +83,14 @@ public function testSimpleAJAXFormValue() { $this->assertEqual($build_id_from_cache_first_ajax, $build_id_from_cache_second_ajax, 'Build id remains the same on subsequent AJAX submissions'); } + /** + * Tests a form that uses an #ajax callback. + * + * @see \Drupal\system\Tests\Ajax\ElementValidationTest::testAjaxElementValidation() + */ + function testAjaxElementValidation() { + $edit = ['drivertext' => t('some dumb text')]; + $this->drupalPostAjaxForm('ajax_validation_test', $edit, 'drivertext'); + } + }