diff options
author | Alex Bilbie <alex@alexbilbie.com> | 2012-10-16 19:19:30 +0200 |
---|---|---|
committer | Alex Bilbie <alex@alexbilbie.com> | 2012-10-16 19:19:30 +0200 |
commit | 526d88f7d1d91bd51b3aa27ee8e170b7fa39a639 (patch) | |
tree | ccf5d883977c88466b1d062a2bc9f0a1ab33f2c1 /tests/codeigniter/helpers | |
parent | 1624b4297c89334362f6ade5f5b766c916ffcbb1 (diff) |
Added language helper unit test
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
Diffstat (limited to 'tests/codeigniter/helpers')
-rw-r--r-- | tests/codeigniter/helpers/language_helper_test.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/codeigniter/helpers/language_helper_test.php b/tests/codeigniter/helpers/language_helper_test.php new file mode 100644 index 000000000..06932b9fd --- /dev/null +++ b/tests/codeigniter/helpers/language_helper_test.php @@ -0,0 +1,14 @@ +<?php + +class Language_helper_test extends CI_TestCase { + + public function test_lang() + { + $this->helper('language'); + $this->ci_instance_var('lang', new Mock_Core_Lang()); + + $this->assertFalse(lang(1)); + $this->assertEquals('<label for="foo"></label>', lang(1, 'foo')); + } + +}
\ No newline at end of file |