fix: correct test references to use selection ID 1475 for exemption
This commit is contained in:
@@ -120,7 +120,7 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
|
|||||||
->assertRaised();
|
->assertRaised();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testParticipantWithOutOfRangeBodyDimensionsFailsValidationWithoutSelection1474(): void
|
public function testParticipantWithOutOfRangeBodyDimensionsFailsValidationWithoutSelection1475(): void
|
||||||
{
|
{
|
||||||
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
|
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
|
||||||
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
|
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
|
||||||
@@ -133,11 +133,11 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
|
|||||||
$this->assertCount(3, $this->context->getViolations());
|
$this->assertCount(3, $this->context->getViolations());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInCreateModeWithSelection1474(): void
|
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInCreateModeWithSelection1475(): void
|
||||||
{
|
{
|
||||||
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
|
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
|
||||||
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
|
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
|
||||||
[1474]
|
[1475]
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setRoot($wrapper);
|
$this->setRoot($wrapper);
|
||||||
@@ -146,11 +146,11 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
|
|||||||
$this->assertNoViolation();
|
$this->assertNoViolation();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInEditModeWithSelection1474(): void
|
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInEditModeWithSelection1475(): void
|
||||||
{
|
{
|
||||||
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
|
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
|
||||||
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
|
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
|
||||||
[1474],
|
[1475],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -22,14 +22,14 @@ class SelectionBasedBodyDimensionExemptionTest extends TestCase
|
|||||||
$this->exemption = new SelectionBasedBodyDimensionExemption();
|
$this->exemption = new SelectionBasedBodyDimensionExemption();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testReturnsTrueWhenWrapperTravelContainsSelection1474(): void
|
public function testReturnsTrueWhenWrapperTravelContainsSelection1475(): void
|
||||||
{
|
{
|
||||||
$root = $this->createWrapperWithSelectionIds([1474]);
|
$root = $this->createWrapperWithSelectionIds([1475]);
|
||||||
|
|
||||||
$this->assertTrue($this->exemption->isBodyDimensionValidationExempt($root));
|
$this->assertTrue($this->exemption->isBodyDimensionValidationExempt($root));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testReturnsFalseWhenSelection1474IsAbsent(): void
|
public function testReturnsFalseWhenSelection1475IsAbsent(): void
|
||||||
{
|
{
|
||||||
$root = $this->createWrapperWithSelectionIds([2001]);
|
$root = $this->createWrapperWithSelectionIds([2001]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user