diff --git a/tests/Unit/ValidationRuleParsingTest.php b/tests/Unit/ValidationRuleParsingTest.php index 92283115..f7115b4d 100644 --- a/tests/Unit/ValidationRuleParsingTest.php +++ b/tests/Unit/ValidationRuleParsingTest.php @@ -375,13 +375,15 @@ public function supportedRules() 'description' => 'Must be accepted.', ] ]; - yield 'accepted_if' => [ - ['accepted_if_param' => 'accepted_if:another_field,a_value'], - [], - [ - 'type' => 'boolean', - 'description' => "Must be accepted when another_field is a_value.", - ] - ]; + if (version_compare(Application::VERSION, '8.53', '>=')) { + yield 'accepted_if' => [ + ['accepted_if_param' => 'accepted_if:another_field,a_value'], + [], + [ + 'type' => 'boolean', + 'description' => "Must be accepted when another_field is a_value.", + ] + ]; + } } }