Browse Source

Fix incorrectly formatted messages used in test cases.

PoFileParser returns different format actually.
chinpei215 10 years ago
parent
commit
9427739830
1 changed files with 12 additions and 0 deletions
  1. 12 0
      tests/TestCase/I18n/I18nTest.php

+ 12 - 0
tests/TestCase/I18n/I18nTest.php

@@ -326,6 +326,12 @@ class I18nTest extends TestCase
             $package->setMessages([
                 'letter' => [
                     '_context' => [
+                        'character' => 'The letter {0}',
+                        'communication' => 'The letters {0} and {1}',
+                    ]
+                ],
+                'letters' => [
+                    '_context' => [
                         'character' => [
                             'The letter {0}',
                             'The letters {0} and {1}'
@@ -391,6 +397,12 @@ class I18nTest extends TestCase
             $package->setMessages([
                 'letter' => [
                     '_context' => [
+                        'character' => 'The letter {0}',
+                        'communication' => 'The letters {0} and {1}',
+                    ]
+                ],
+                'letters' => [
+                    '_context' => [
                         'character' => [
                             'The letter {0}',
                             'The letters {0} and {1}'