From 6dc40e617879c2424a3dd38386dce49bbfeb7746 Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Mon, 23 Dec 2024 18:15:13 +0100 Subject: [PATCH] Fix whitespace in Tests output --- .../content/tests/codeception/acceptance/ScheduledCest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protected/humhub/modules/content/tests/codeception/acceptance/ScheduledCest.php b/protected/humhub/modules/content/tests/codeception/acceptance/ScheduledCest.php index 286dfc7b28..d4f40eaf01 100644 --- a/protected/humhub/modules/content/tests/codeception/acceptance/ScheduledCest.php +++ b/protected/humhub/modules/content/tests/codeception/acceptance/ScheduledCest.php @@ -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'; }