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();