summaryrefslogtreecommitdiffstats
path: root/tests/mocks/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks/core')
-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();
}
}