fix: correct test references to use selection ID 1475 for exemption

This commit is contained in:
Björn Fromme
2026-06-23 13:41:03 +02:00
parent febbf8dd1d
commit ffa2038acb
2 changed files with 8 additions and 8 deletions
@@ -120,7 +120,7 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
->assertRaised();
}
public function testParticipantWithOutOfRangeBodyDimensionsFailsValidationWithoutSelection1474(): void
public function testParticipantWithOutOfRangeBodyDimensionsFailsValidationWithoutSelection1475(): void
{
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
@@ -133,11 +133,11 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
$this->assertCount(3, $this->context->getViolations());
}
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInCreateModeWithSelection1474(): void
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInCreateModeWithSelection1475(): void
{
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
[1474]
[1475]
);
$this->setRoot($wrapper);
@@ -146,11 +146,11 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
$this->assertNoViolation();
}
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInEditModeWithSelection1474(): void
public function testParticipantWithOutOfRangeBodyDimensionsPassesValidationInEditModeWithSelection1475(): void
{
$wrapper = $this->createWrapperWithParticipantAndTravelSelections(
$this->createValidParticipantWithOutOfRangeBodyDimensions(),
[1474],
[1475],
true
);
@@ -22,14 +22,14 @@ class SelectionBasedBodyDimensionExemptionTest extends TestCase
$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));
}
public function testReturnsFalseWhenSelection1474IsAbsent(): void
public function testReturnsFalseWhenSelection1475IsAbsent(): void
{
$root = $this->createWrapperWithSelectionIds([2001]);