mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-19 18:32:52 +09:00
unit test
This commit is contained in:
parent
6a351265ff
commit
e5ae4a828a
1 changed files with 6 additions and 6 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue