mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding additional test cases for nld, dut, and nl. Closes #795
This commit is contained in:
parent
94fc492623
commit
ccd036eed0
1 changed files with 16 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue