diff --git a/tests/Unit/RatingControllerTest.php b/tests/Unit/RatingControllerTest.php index e6c237a..7e2e205 100644 --- a/tests/Unit/RatingControllerTest.php +++ b/tests/Unit/RatingControllerTest.php @@ -1,4 +1,4 @@ -<?php +createMany([ ['product_id' => $productId, 'rating' => 5], ['product_id' => $productId, 'rating' => 4], ]); - Rating::reguard(); $averageRating = Rating::calculateAverageRating($productId);