mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #3480 from Schlaefer/fix-testDecimalLocaleSet-OSX
fixes failing test case ValidationTest::testDecimalLocaleSet() on OS X
This commit is contained in:
commit
590e552d31
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue