add test for accompanying period location validity

This commit is contained in:
2021-07-28 16:16:57 +02:00
parent 3c7b67604c
commit 3169da20ad
3 changed files with 129 additions and 5 deletions

View File

@@ -42,10 +42,12 @@ class LocationValidityValidator extends ConstraintValidator
if ($period->getStep() !== AccompanyingPeriod::STEP_DRAFT
&& $period->getLocationStatus() === 'none') {
$this->context->buildViolation($constraint->messagePeriodMustRemainsLocated
->addViolation()
;
$this->context
->buildViolation(
$constraint->messagePeriodMustRemainsLocated
)
->addViolation()
;
}
}