Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding tests for welsh added in previous commit.

  • Loading branch information...
commit 3d98cc6f53a735704f792ddd6c970bfb3960a09a 1 parent 046c233
@markstory markstory authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 cake/tests/cases/libs/l10n.test.php
View
10 cake/tests/cases/libs/l10n.test.php
@@ -426,6 +426,10 @@ function testMap() {
$result = $l10n->map(array('xho', 'xh'));
$expected = array('xho' => 'xh', 'xh' => 'xho');
$this->assertEqual($result, $expected);
+
+ $result = $l10n->map(array('cy', 'cym'));
+ $expected = array('cym' => 'cy', 'cy' => 'cym');
+ $this->assertEqual($result, $expected);
$result = $l10n->map(array('yid', 'yi'));
$expected = array('yid' => 'yi', 'yi' => 'yid');
@@ -878,6 +882,12 @@ function testCatalog() {
);
$this->assertEqual($result, $expected);
+ $result = $l10n->catalog(array('cy'));
+ $expected = array(
+ 'cy' => array('language' => 'Welsh', 'locale' => 'cym', 'localeFallback' => 'cym', 'charset' => 'utf-8')
+ );
+ $this->assertEqual($result, $expected);
+
$result = $l10n->catalog(array('xh'));
$expected = array(
'xh' => array('language' => 'Xhosa', 'locale' => 'xho', 'localeFallback' => 'xho', 'charset' => 'utf-8', 'direction' => 'ltr')
Please sign in to comment.
Something went wrong with that request. Please try again.