Skip to content

Commit

Permalink
updating controller tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 10, 2011
1 parent 54eb934 commit 35ebd29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/tests/Case/Controller/ControllerTest.php
Expand Up @@ -406,6 +406,7 @@ function setUp() {
* @return void
*/
function teardown() {
CakePlugin::unload();
App::build();
}

Expand Down Expand Up @@ -442,6 +443,7 @@ function testLoadModelInPlugins() {
'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');

Expand Down Expand Up @@ -481,6 +483,7 @@ function testConstructClasses() {
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');
Expand Down

0 comments on commit 35ebd29

Please sign in to comment.