Permalink
Browse files

Fixing controller test to run when app/views/posts/index.ctp is present.

  • Loading branch information...
1 parent 3b3cedd commit 4632402a2538736855ae2929fefad9aa58104ada @markstory markstory committed Nov 3, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 cake/tests/cases/libs/controller/controller.test.php
@@ -772,7 +772,9 @@ function testControllerSet() {
* @return void
*/
function testRender() {
- App::build(array('views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS)));
+ App::build(array(
+ 'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS)
+ ), true);
$Controller =& new Controller();
$Controller->viewPath = 'posts';
@@ -797,6 +799,7 @@ function testRender() {
$Controller->ControllerComment->validationErrors = array();
ClassRegistry::flush();
+ App::build();
}
/**

0 comments on commit 4632402

Please sign in to comment.