diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php index 4b61a81436..5f63f7609a 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormPageCacheTest.php @@ -44,7 +44,8 @@ public function testSimpleAJAXFormValue() { $this->assertEquals($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.'); $build_id_initial = $this->getFormBuildId(); - // Changing the value of a select input element, triggers a AJAX request/response. + // Changing the value of a select input element, triggers a AJAX + // request/response. // // The callback on the form responds with three AJAX command :- // UpdateBuildIdCommand @@ -54,7 +55,8 @@ public function testSimpleAJAXFormValue() { $session->getPage()->selectFieldOption('select', 'green'); // Wait for the DOM to update. - // The HtmlCommand will update #ajax_selected_color to reflect the color change. + // The HtmlCommand will update #ajax_selected_color to reflect the color + // change. $green_div = $this->assertSession()->waitForElement('css', "#ajax_selected_color div:contains('green')"); $this->assertNotNull($green_div, 'DOM update: The selected color DIV is green.'); @@ -62,7 +64,8 @@ public function testSimpleAJAXFormValue() { $build_id_first_ajax = $this->getFormBuildId(); $this->assertNotEquals($build_id_initial, $build_id_first_ajax, 'Build id is changed in the form_build_id element on first AJAX submission'); - // Changing the value of a select input element, triggers a AJAX request/response. + // Changing the value of a select input element, triggers a AJAX + // request/response. $session->getPage()->selectFieldOption('select', 'red'); // Wait for the DOM to update. @@ -80,7 +83,8 @@ public function testSimpleAJAXFormValue() { $build_id_from_cache_initial = $this->getFormBuildId(); $this->assertEquals($build_id_initial, $build_id_from_cache_initial, 'Build id is the same as on the first request'); - // Changing the value of a select input element, triggers a AJAX request/response. + // Changing the value of a select input element, triggers a AJAX + // request/response. $session->getPage()->selectFieldOption('select', 'green'); // Wait for the DOM to update. @@ -110,7 +114,8 @@ public function testSimpleAJAXFormValue() { */ public function testAjaxElementValidation() { $this->drupalGet('ajax_validation_test'); - // Changing the value of the textfield will trigger an AJAX request/response. + // Changing the value of the textfield will trigger an AJAX + // request/response. $this->getSession()->getPage()->fillField('drivertext', 'some dumb text'); // When the AJAX command updates the DOM a