Fix whitespace in Tests output

This commit is contained in:
Yuriy Bakhtin 2024-12-23 18:15:13 +01:00
parent 90a09a78f4
commit 6dc40e6178

View File

@ -52,7 +52,8 @@ class ScheduledCest
private function getLabelText(?Datetime $datetime = null): string
{
return $datetime instanceof DateTime
? 'SCHEDULED FOR ' . Yii::$app->formatter->asDatetime($datetime, self::DATE_FORMAT)
// Replace newly introduced Unicode separator whitespace, which a standard one, to sway backward compatible.
? 'SCHEDULED FOR ' . str_replace('', ' ', Yii::$app->formatter->asDatetime($datetime, self::DATE_FORMAT))
: 'DRAFT';
}