diff --git a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php index 26edb8e..8816f63 100644 --- a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php +++ b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php @@ -332,4 +332,7 @@ function history_read() { return 0; } } + if (!defined('LOCALE_PLURAL_DELIMITER')) { + define('LOCALE_PLURAL_DELIMITER', "\03"); + } } diff --git a/core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php b/core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php index c8000bf..c496aaf 100644 --- a/core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php +++ b/core/tests/Drupal/Tests/Core/StringTranslation/StringTranslationTraitTest.php @@ -5,7 +5,7 @@ * Contains \Drupal\Tests\Core\StringTranslation\StringTranslationTraitTest. */ -namespace Drupal\Tests\Core\StringTranslation; +namespace Drupal\Tests\Core\StringTranslation { use Drupal\Tests\UnitTestCase; @@ -64,3 +64,11 @@ public function testFormatPlural() { } } + +} + +namespace { + if (!defined('LOCALE_PLURAL_DELIMITER')) { + define('LOCALE_PLURAL_DELIMITER', "\03"); + } +}