Skip to content

Commit

Permalink
sort arguments in comment constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Jul 28, 2024
1 parent 9cfb64a commit 69880f8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/models/ReviewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 69880f8

Please sign in to comment.