Add acceptance tests for blocking trashing active segments

[MAILPOET-3463]
This commit is contained in:
Rostislav Wolny
2021-03-25 14:49:12 +01:00
committed by Veljko V
parent 51e5206ed8
commit 3f434aae76
4 changed files with 57 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class DynamicSegments extends APIEndpoint {
Error::BAD_REQUEST => str_replace(
'%$1s',
"'" . join("', '", $activelyUsedNewslettersSubjects[$segment->getId()] ) . "'",
_x('List cannot be deleted because its used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.', 'mailpoet')
_x('Segment cannot be deleted because its used for %$1s email', 'Alert shown when trying to delete segment, which is assigned to any automatic emails.', 'mailpoet')
),
]);
}