Skip to content

Commit

Permalink
Skip example comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah authored Sep 25, 2024
1 parent 209cfea commit 65c1acb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/ValidationRuleParsingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public function can_parse_supported_rules(array $ruleset, array $customInfo, arr
$this->assertEquals($expected['type'], $results[$parameterName]['type']);
}

// Validate that the generated values actually pass validation
// Validate that the generated values actually pass validation (for rules where we can generate some data)
if (is_string($ruleset[$parameterName]) && str_contains($ruleset[$parameterName], "exists")) return;

$exampleData = [$parameterName => $results[$parameterName]['example']];
$validator = Validator::make($exampleData, $ruleset);
try {
Expand Down

0 comments on commit 65c1acb

Please sign in to comment.