8000 minor #52245 [Form] skip tests that do not work with ICU 71.1 (xabbuh) · symfonyaml/symfony@0719891 · GitHub
[go: up one dir, main page]

Skip to content
65EE

Commit 0719891

Browse files
committed
minor symfony#52245 [Form] skip tests that do not work with ICU 71.1 (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Form] skip tests that do not work with ICU 71.1 | Q | A | ------------- | --- | Branch? | 7.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 6e9d9ab skip tests that do not work with ICU 71.1
2 parents ce95b87 + 6e9d9ab commit 0719891

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Form\ChoiceList\View\ChoiceView;
1515
use Symfony\Component\Form\FormError;
1616
use Symfony\Component\Form\FormInterface;
17+
use Symfony\Component\Intl\Intl;
1718
use Symfony\Component\Intl\Util\IntlTestHelper;
1819
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
1920

@@ -90,6 +91,10 @@ public function testSubmitFromSingleTextDateTime()
9091
// we test against "de_DE", so we need the full implementation
9192
IntlTestHelper::requireFullIntl($this, false);
9293

94+
if ('71.1' === Intl::getIcuVersion()) {
95+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
96+
}
97+
9398
\Locale::setDefault('de_DE');
9499

95100
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -112,6 +117,10 @@ public function testSubmitFromSingleTextDateTimeImmutable()
112117
// we test against "de_DE", so we need the full implementation
113118
IntlTestHelper::requireFullIntl($this, false);
114119

120+
if ('71.1' === Intl::getIcuVersion()) {
121+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
122+
}
123+
115124
\Locale::setDefault('de_DE');
116125

117126
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -135,6 +144,10 @@ public function testSubmitFromSingleTextString()
135144
// we test against "de_DE", so we need the full implementation
136145
IntlTestHelper::requireFullIntl($this, false);
137146

147+
if ('71.1' === Intl::getIcuVersion()) {
148+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
149+
}
150+
138151
\Locale::setDefault('de_DE');
139152

140153
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -157,6 +170,10 @@ public function testSubmitFromSingleTextTimestamp()
157170
// we test against "de_DE", so we need the full implementation
158171
IntlTestHelper::requireFullIntl($this, false);
159172

173+
if ('71.1' === Intl::getIcuVersion()) {
174+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
175+
}
176+
160177
\Locale::setDefault('de_DE');
161178

162179
$form = $this->factory->create(static::TESTED_TYPE, null, [
@@ -181,6 +198,10 @@ public function testSubmitFromSingleTextRaw()
181198
// we test against "de_DE", so we need the full implementation
182199
IntlTestHelper::requireFullIntl($this, false);
183200

201+
if ('71.1' === Intl::getIcuVersion()) {
202+
$this->markTestSkipped('Skipping test due to a bug in ICU 71.1.');
203+
}
204+
184205
\Locale::setDefault('de_DE');
185206

186207
$form = $this->factory->create(static::TESTED_TYPE, null, [

0 commit comments

Comments
 (0)
0