From 49cb18ae6f26edf2d6ab43a760eb96a8bb4b3d9d Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Tue, 11 Jun 2024 07:50:01 +0400 Subject: [PATCH] refactor testIsVerified to make parameters of createReview clearer --- tests/models/ReviewTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/models/ReviewTest.php b/tests/models/ReviewTest.php index e8c9a83..1a2683d 100644 --- a/tests/models/ReviewTest.php +++ b/tests/models/ReviewTest.php @@ -351,7 +351,11 @@ public function testGetNestedComments(): void public function testIsVerified(): void { // note: do not use data provider here because $faker is static and causes a bug - $verified_review = self::createReview(self::createProduct(), self::createClient(), null, true); + $verified_review = self::createReview( + self::createProduct(), + self::createClient(), + verified: true + ); $unverified_review = self::createReview(self::createProduct(), self::createClient()); $fake_review = new Review(review_id: -321, product_id: -32);