fixes failing test case ValidationTest::testDecimalLocaleSet() on OS X

thousand separator isn't set in de_DE but in da_DK
This commit is contained in:
Schlaefer 2014-05-13 13:25:53 +02:00
parent 3c57300816
commit e10e8fcb15

View file

@ -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');