mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
Fix Context::loadLang() compatibility when lang.xml is specified
This commit is contained in:
parent
1a3e1f1653
commit
8ca0ca4a47
2 changed files with 10 additions and 1 deletions
|
|
@ -66,4 +66,12 @@ class LangTest extends \Codeception\TestCase\Test
|
|||
$en->foobartestlang = 'Hello, %s!';
|
||||
$this->assertEquals('Hello, Travis!', $en->get('foobartestlang', 'Travis'));
|
||||
}
|
||||
|
||||
public function testLangCompat()
|
||||
{
|
||||
Context::loadLang('./modules/member/lang');
|
||||
$this->assertEquals('서명', Context::getLang('signature'));
|
||||
Context::loadLang('./modules/document/lang/lang.xml');
|
||||
$this->assertEquals('문서 목록', Context::getLang('document_list'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue