From e5ae4a828a893d5648806dc06697ca260f334f4d Mon Sep 17 00:00:00 2001 From: conory Date: Thu, 3 Mar 2016 12:45:35 +0900 Subject: [PATCH] unit test --- tests/unit/framework/LangTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/framework/LangTest.php b/tests/unit/framework/LangTest.php index d4059690b..cbe4c4ab0 100644 --- a/tests/unit/framework/LangTest.php +++ b/tests/unit/framework/LangTest.php @@ -14,17 +14,17 @@ class LangTest extends \Codeception\TestCase\Test $jp = Rhymix\Framework\Lang::getInstance('jp'); $this->assertTrue($ja === $jp); + $this->assertEquals('help', $ja->help); + $ja->loadPlugin('common'); + $this->assertEquals('ヘルプ', $ja->help); + $this->assertEquals('도움말', $ko->get('common.help')); $this->assertEquals('Help', $en->get('common.help')); $this->assertEquals('도움말', $ko->help); $this->assertEquals('Help', $en->help); - $this->assertEquals('nonexistent', $ko->get('common.nonexistent')); - $this->assertEquals('nonexistent', $ko->get('common.nonexistent', 'foo', 'bar')); - - $this->assertEquals('help', $ja->help); - $ja->loadPlugin('common'); - $this->assertEquals('ヘルプ', $ja->help); + $this->assertEquals('common.nonexistent', $ko->get('common.nonexistent')); + $this->assertEquals('common.nonexistent', $ko->get('common.nonexistent', 'foo', 'bar')); $ko->foobartestlang = '%s님 안녕하세요?'; $this->assertEquals('Travis님 안녕하세요?', $ko->foobartestlang('Travis'));