diff --git a/src/Controller/AjaxCommentsController.php b/src/Controller/AjaxCommentsController.php index decfa45..9e5441a 100644 --- a/src/Controller/AjaxCommentsController.php +++ b/src/Controller/AjaxCommentsController.php @@ -272,7 +272,7 @@ class AjaxCommentsController extends ControllerBase { // } // Don't delete the tempStore variables here; we need them - // to persist for the update() method below, where the form returned + // to persist for the save() method below, where the form returned // here will be submitted. // Instead, return the response without calling $this->tempStore->deleteAll(). return $response; @@ -630,7 +630,7 @@ class AjaxCommentsController extends ControllerBase { $response->addCommand(new AfterCommand(static::getCommentSelectorPrefix() . $pid, $form)); // Don't delete the tempStore variables here; we need them - // to persist for the update() method, where the form returned + // to persist for the saveReply() method, where the form returned // here will be submitted. // Instead, return the response without calling $this->tempStore->deleteAll(). return $response; diff --git a/src/Tests/AjaxCommentsTest.php b/src/Tests/AjaxCommentsTest.php index 66a5e50..f6f22e6 100644 --- a/src/Tests/AjaxCommentsTest.php +++ b/src/Tests/AjaxCommentsTest.php @@ -254,7 +254,7 @@ class AjaxCommentsTest extends CommentTestBase { $cancel_remove_messages_response_found = FALSE; $ajax_result = $this->drupalPostAjaxForm( - // Path. + // Path. 'comment/' . $comment->id() . '/edit', // Edit. [ @@ -301,7 +301,7 @@ class AjaxCommentsTest extends CommentTestBase { // Test actually editing the comment. $revised_comment_body = $this->randomMachineName(); $ajax_result = $this->drupalPostAjaxForm( - // Path. + // Path. 'comment/' . $comment->id() . '/edit', // Edit. ['comment_body[0][value]' => $revised_comment_body],