mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
add test for accompanying period location validity
This commit is contained in:
@@ -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()
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user