Skip to content

Commit 05e146c

Browse files
committed
minor #34994 [Validator] skip not applicable tests (xabbuh)
This PR was merged into the 4.3 branch. Discussion ---------- [Validator] skip not applicable tests | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 227c38180f skip not applicable tests
2 parents 580f6e2 + 6f69a57 commit 05e146c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,12 @@ public function testThrowsOnInvalidStringDates(AbstractComparison $constraint, $
108108
{
109109
$this->markTestSkipped('The compared value cannot be an invalid string date because it is hardcoded to 0.');
110110
}
111+
112+
/**
113+
* @dataProvider provideComparisonsToNullValueAtPropertyPath
114+
*/
115+
public function testCompareWithNullValueAtPropertyAt($dirtyValue, $dirtyValueAsString, $isValid)
116+
{
117+
$this->markTestSkipped('PropertyPath option is not used in NegativeOrZero constraint');
118+
}
111119
}

Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,12 @@ public function testThrowsOnInvalidStringDates(AbstractComparison $constraint, $
108108
{
109109
$this->markTestSkipped('The compared value cannot be an invalid string date because it is hardcoded to 0.');
110110
}
111+
112+
/**
113+
* @dataProvider provideComparisonsToNullValueAtPropertyPath
114+
*/
115+
public function testCompareWithNullValueAtPropertyAt($dirtyValue, $dirtyValueAsString, $isValid)
116+
{
117+
$this->markTestSkipped('PropertyPath option is not used in Negative constraint');
118+
}
111119
}

0 commit comments

Comments
 (0)