Permalink
Browse files

Fixing infinite loops caused by stale caches.

  • Loading branch information...
1 parent 813a777 commit 1a8c3fd40588b532429cc38c5408cbfc4b00e627 @markstory markstory committed Jan 15, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 cake/tests/cases/libs/object.test.php
@@ -662,7 +662,9 @@ function testRequestAction() {
'models' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'models' . DS),
'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views' . DS),
'controllers' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'controllers' . DS)
- ), true);
+ ));
+ App::objects('plugin', null, false);
+ Router::reload();
$result = $this->object->requestAction('/tests_apps/index', array('return'));
$expected = 'This is the TestsAppsController index view';
@@ -716,6 +718,9 @@ function testRequestAction() {
$result = $this->object->requestAction(array('controller'=>'request_action', 'action'=>'paginate_request_action'), array('pass' => array(5), 'named' => array('param' => 'value')));
$this->assertTrue($result);
+
+ App::build();
+ App::objects('plugin', null, false);
}
/**

0 comments on commit 1a8c3fd

Please sign in to comment.