From 69880f8fe77d70d6563e14122dd6e38d8cf8b009 Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:18:30 +0400 Subject: [PATCH] sort arguments in comment constructor --- tests/models/ReviewTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/models/ReviewTest.php b/tests/models/ReviewTest.php index df417b8..92559ff 100644 --- a/tests/models/ReviewTest.php +++ b/tests/models/ReviewTest.php @@ -296,33 +296,33 @@ public function testGetNestedComments(): void // Create root level comment $comment1 = new Comment( - review_id: $review->getReviewID(), user_id: $this->reviewer->getUserID(), + review_id: $review->getReviewID(), text: "This is a root level comment." ); $comment1->save(); // Create nested comments $comment2 = new Comment( - review_id: $review->getReviewID(), user_id: $this->reviewer->getUserID(), - text: "This is a child comment.", - parent_comment_id: $comment1->getCommentID() + review_id: $review->getReviewID(), + parent_comment_id: $comment1->getCommentID(), + text: "This is a child comment." ); $comment2->save(); $comment3 = new Comment( - review_id: $review->getReviewID(), user_id: $this->reviewer->getUserID(), + review_id: $review->getReviewID(), text: "This is another root level comment." ); $comment3->save(); $comment4 = new Comment( - review_id: $review->getReviewID(), user_id: $this->reviewer->getUserID(), - text: "This is a child of a child comment.", - parent_comment_id: $comment2->getCommentID() + review_id: $review->getReviewID(), + parent_comment_id: $comment2->getCommentID(), + text: "This is a child of a child comment." ); $comment4->save();