Skip to content

Commit

Permalink
fixes failing test case ValidationTest::testDecimalLocaleSet() on OS X
Browse files Browse the repository at this point in the history
thousand separator isn't set in de_DE but in da_DK
  • Loading branch information
Schlaefer committed May 13, 2014
1 parent 3c57300 commit e10e8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/ValidationTest.php
Expand Up @@ -1662,7 +1662,7 @@ public function testDecimalCustomRegex() {
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');
Expand Down

0 comments on commit e10e8fc

Please sign in to comment.