diff --git a/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php b/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php index b8c31aa3f0a69b9396f2d2c3ddb85c893d844344..742a62fed7e1aceaff3e11148d861aa2d9df4101 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/EditLoadingTest.php @@ -189,8 +189,7 @@ public function testUserWithPermission() { $this->assertIdentical('<form ', Unicode::substr($ajax_commands[0]['data'], 0, 6), 'The editFieldForm command contains a form.'); // Prepare form values for submission. drupalPostAjaxForm() is not suitable - // for handling pages with JSON responses, so we need our own solution - // here. + // for handling pages with JSON responses, so we need our own solution here. $form_tokens_found = preg_match('/\sname="form_token" value="([^"]+)"/', $ajax_commands[0]['data'], $token_match) && preg_match('/\sname="form_build_id" value="([^"]+)"/', $ajax_commands[0]['data'], $build_id_match); $this->assertTrue($form_tokens_found, 'Form tokens found in output.'); @@ -208,8 +207,8 @@ public function testUserWithPermission() { ); $post += $edit + $this->getAjaxPageStatePostData(); - // Submit field form and check response. This should store the - // updated entity in TempStore on the server. + // Submit field form and check response. This should store the updated + // entity in TempStore on the server. $response = $this->drupalPost('edit/form/' . 'node/1/body/und/full', 'application/vnd.drupal-ajax', $post); $this->assertResponse(200); $ajax_commands = drupal_json_decode($response); @@ -455,6 +454,7 @@ public function testConcurrentEdit() { $post = array('nocssjs' => 'true') + $this->getAjaxPageStatePostData(); $response = $this->drupalPost('edit/form/' . 'node/1/body/und/full', 'application/vnd.drupal-ajax', $post); + $this->assertResponse(200); $ajax_commands = drupal_json_decode($response); // Prepare form values for submission. drupalPostAJAX() is not suitable for