summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries/Upload_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-25 14:05:57 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-25 14:05:57 +0100
commitade05b40714070bcda7ab32187068e95b98c8cf8 (patch)
tree7908487f27840c04b28909363093d77de3415249 /tests/codeigniter/libraries/Upload_test.php
parentad5f1d032fb3204bc1b81891a3231ae8ac47392b (diff)
parent1713d322a309d9cf405cfe83e2131368f29b222b (diff)
Merge pull request #2030 from dchill42/unit_tests
Replaced Mock_Core_Lang with PHPUnit mockups
Diffstat (limited to 'tests/codeigniter/libraries/Upload_test.php')
-rw-r--r--tests/codeigniter/libraries/Upload_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/codeigniter/libraries/Upload_test.php b/tests/codeigniter/libraries/Upload_test.php
index 546cebc59..1bd8f1430 100644
--- a/tests/codeigniter/libraries/Upload_test.php
+++ b/tests/codeigniter/libraries/Upload_test.php
@@ -7,7 +7,8 @@ class Upload_test extends CI_TestCase {
$ci = $this->ci_instance();
$ci->upload = new Mock_Libraries_Upload();
$ci->security = new Mock_Core_Security();
- $ci->lang = new Mock_Core_Lang();
+ $ci->lang = $this->getMock('CI_Lang', array('load', 'line'));
+ $ci->lang->expects($this->any())->method('line')->will($this->returnValue(FALSE));
$this->upload = $ci->upload;
}