summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoffrey Jaffeux <j.jaffeux@gmail.com>2012-06-05 13:36:13 +0200
committerJoffrey Jaffeux <j.jaffeux@gmail.com>2012-06-05 13:36:13 +0200
commit06c22871943bee956522b893e8acbf206524a229 (patch)
tree55f7c2e2e504e3bca377e73689e7af8bc722d73e /tests
parent8fe766dcd4251070c4b9dc52e882b14189e3df66 (diff)
Add test when loading language file and not using the second parameter (language)
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/core/Lang_test.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/codeigniter/core/Lang_test.php b/tests/codeigniter/core/Lang_test.php
index a414f0ace..92c71322e 100644
--- a/tests/codeigniter/core/Lang_test.php
+++ b/tests/codeigniter/core/Lang_test.php
@@ -18,13 +18,21 @@ class Lang_test extends CI_TestCase {
public function test_load()
{
$this->assertTrue($this->lang->load('profiler', 'english'));
+ $this->_test_line();
+ }
+
+ // --------------------------------------------------------------------
+
+ public function test_load_with_unspecified_language()
+ {
+ $this->assertTrue($this->lang->load('profiler'));
+ $this->_test_line();
}
// --------------------------------------------------------------------
- public function test_line()
+ private function _test_line()
{
- $this->assertTrue($this->lang->load('profiler', 'english'));
$this->assertEquals('URI STRING', $this->lang->line('profiler_uri_string'));
}