浏览代码

updating controller tests

Jose Lorenzo Rodriguez 15 年之前
父节点
当前提交
35ebd29ac3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/Cake/tests/Case/Controller/ControllerTest.php

+ 3 - 0
lib/Cake/tests/Case/Controller/ControllerTest.php

@@ -406,6 +406,7 @@ class ControllerTest extends CakeTestCase {
  * @return void
  */
 	function teardown() {
+		CakePlugin::unload();
 		App::build();
 	}
 
@@ -442,6 +443,7 @@ class ControllerTest extends CakeTestCase {
 			'Controller' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'Controller' . DS),
 			'Model' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'Model' . DS)
 		));
+		CakePlugin::load('TestPlugin');
 		App::uses('TestPluginAppController', 'TestPlugin.Controller');
 		App::uses('TestPluginController', 'TestPlugin.Controller');
 
@@ -481,6 +483,7 @@ class ControllerTest extends CakeTestCase {
 		unset($Controller);
 
 		App::build(array('plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)));
+		CakePlugin::load('TestPlugin');
 
 		$Controller = new Controller($request);
 		$Controller->uses = array('TestPlugin.TestPluginPost');