From ccd036eed03af678ecf3f2ecff6d29e945f877dd Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 7 Jun 2010 23:10:53 -0400 Subject: [PATCH] Adding additional test cases for nld, dut, and nl. Closes #795 --- cake/tests/cases/libs/l10n.test.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cake/tests/cases/libs/l10n.test.php b/cake/tests/cases/libs/l10n.test.php index 6efd3954e..4b8483d4b 100644 --- a/cake/tests/cases/libs/l10n.test.php +++ b/cake/tests/cases/libs/l10n.test.php @@ -194,6 +194,10 @@ class L10nTest extends CakeTestCase { $result = $l10n->map(array('nld', 'nl')); $expected = array('nld' => 'nl', 'nl' => 'dut'); $this->assertEqual($result, $expected); + + $result = $l10n->map(array('nld')); + $expected = array('nld' => 'nl'); + $this->assertEqual($result, $expected); $result = $l10n->map(array('eng', 'en')); $expected = array('eng' => 'en', 'en' => 'eng'); @@ -745,6 +749,18 @@ class L10nTest extends CakeTestCase { ); $this->assertEqual($result, $expected); + $result = $l10n->catalog('nl'); + $expected = array('language' => 'Dutch (Standard)', 'locale' => 'dut', 'localeFallback' => 'dut', 'charset' => 'utf-8', 'direction' => 'ltr'); + $this->assertEqual($result, $expected); + + $result = $l10n->catalog('nld'); + $expected = array('language' => 'Dutch (Standard)', 'locale' => 'dut', 'localeFallback' => 'dut', 'charset' => 'utf-8', 'direction' => 'ltr'); + $this->assertEqual($result, $expected); + + $result = $l10n->catalog('dut'); + $expected = array('language' => 'Dutch (Standard)', 'locale' => 'dut', 'localeFallback' => 'dut', 'charset' => 'utf-8', 'direction' => 'ltr'); + $this->assertEqual($result, $expected); + $result = $l10n->catalog(array('nb')); $expected = array( 'nb' => array('language' => 'Norwegian Bokmal', 'locale' => 'nob', 'localeFallback' => 'nor', 'charset' => 'utf-8', 'direction' => 'ltr')