summaryrefslogtreecommitdiffstats
path: root/tests/mocks
diff options
context:
space:
mode:
authordchill42 <dchill42@gmail.com>2012-08-29 18:58:26 +0200
committerdchill42 <dchill42@gmail.com>2012-08-29 18:58:26 +0200
commit60d100f0fde3fba4fa4015f44f490b7ecac16138 (patch)
tree4568707c49c4ede4c195fca0db798918f2baa073 /tests/mocks
parent9a949fab0c8428233f0de5b199bf955e61fb0e0a (diff)
Added autoloader unit test with minor supporting change in Loader
Signed-off-by: dchill42 <dchill42@gmail.com>
Diffstat (limited to 'tests/mocks')
-rw-r--r--tests/mocks/core/loader.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/mocks/core/loader.php b/tests/mocks/core/loader.php
index e28650dba..c0e02139e 100644
--- a/tests/mocks/core/loader.php
+++ b/tests/mocks/core/loader.php
@@ -30,6 +30,15 @@ class Mock_Core_Loader extends CI_Loader {
$this->_ci_helper_paths = array($this->app_path, $this->base_path);
$this->_ci_model_paths = array($this->app_path);
$this->_ci_view_paths = array($this->app_path.'views/' => TRUE);
+ $this->_ci_autoloader_path = $this->app_path;
+ }
+
+ /**
+ * Give public access to _ci_autoloader for testing
+ */
+ public function autoload()
+ {
+ $this->_ci_autoloader();
}
}