Skip to content

Commit

Permalink
Fixing controller test to run when app/views/posts/index.ctp is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 3, 2009
1 parent 3b3cedd commit 4632402
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cake/tests/cases/libs/controller/controller.test.php
Expand Up @@ -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';
Expand All @@ -797,6 +799,7 @@ function testRender() {

$Controller->ControllerComment->validationErrors = array();
ClassRegistry::flush();
App::build();
}

/**
Expand Down

0 comments on commit 4632402

Please sign in to comment.