From e10e8fcb15c2fe730b2b5ed9b25fba053b06141d Mon Sep 17 00:00:00 2001 From: Schlaefer Date: Tue, 13 May 2014 13:25:53 +0200 Subject: [PATCH] fixes failing test case ValidationTest::testDecimalLocaleSet() on OS X thousand separator isn't set in de_DE but in da_DK --- lib/Cake/Test/Case/Utility/ValidationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Utility/ValidationTest.php b/lib/Cake/Test/Case/Utility/ValidationTest.php index 245217d2a..abfe502cf 100644 --- a/lib/Cake/Test/Case/Utility/ValidationTest.php +++ b/lib/Cake/Test/Case/Utility/ValidationTest.php @@ -1662,7 +1662,7 @@ class ValidationTest extends CakeTestCase { public function testDecimalLocaleSet() { $this->skipIf(DS === '\\', 'The locale is not supported in Windows and affects other tests.'); $restore = setlocale(LC_NUMERIC, 0); - $this->skipIf(setlocale(LC_NUMERIC, 'de_DE') === false, "The German locale isn't available."); + $this->skipIf(setlocale(LC_NUMERIC, 'da_DK') === false, "The Danish locale isn't available."); $this->assertTrue(Validation::decimal(1.54), '1.54 should be considered a valid float'); $this->assertTrue(Validation::decimal('1.54'), '"1.54" should be considered a valid float');