Skip to content

Commit e10e8fc

Browse files
committed
fixes failing test case ValidationTest::testDecimalLocaleSet() on OS X
thousand separator isn't set in de_DE but in da_DK
1 parent 3c57300 commit e10e8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Cake/Test/Case/Utility/ValidationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ public function testDecimalCustomRegex() {
16621662
public function testDecimalLocaleSet() {
16631663
$this->skipIf(DS === '\\', 'The locale is not supported in Windows and affects other tests.');
16641664
$restore = setlocale(LC_NUMERIC, 0);
1665-
$this->skipIf(setlocale(LC_NUMERIC, 'de_DE') === false, "The German locale isn't available.");
1665+
$this->skipIf(setlocale(LC_NUMERIC, 'da_DK') === false, "The Danish locale isn't available.");
16661666

16671667
$this->assertTrue(Validation::decimal(1.54), '1.54 should be considered a valid float');
16681668
$this->assertTrue(Validation::decimal('1.54'), '"1.54" should be considered a valid float');

0 commit comments

Comments
 (0)