Skip to content

Commit

Permalink
refactor testIsVerified to make parameters of createReview clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Jun 11, 2024
1 parent 3a7bc51 commit 49cb18a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/models/ReviewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 49cb18a

Please sign in to comment.