Skip to content
Permalink
Browse files

Fixing failing test in ControllerTest caused by ThemeView not being c…

…orrectly found if it was not in the mapped files.
  • Loading branch information...
markstory committed Jul 19, 2010
1 parent 41997b0 commit a78bb20bdabed0a7cdfe41e9cb9ac1570ea0e607
Showing with 6 additions and 2 deletions.
  1. +6 −2 cake/tests/cases/libs/controller/controller.test.php
@@ -910,8 +910,12 @@ function testRender() {
* @return void
*/
function testComponentBeforeRenderChangingViewClass() {
$core = App::core('views');
App::build(array(
'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS)
'views' => array(
TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS,
$core[0]
)
), true);
$Controller =& new Controller();
$Controller->uses = array();
@@ -921,7 +925,7 @@ function testComponentBeforeRenderChangingViewClass() {
$Controller->viewPath = 'posts';
$Controller->theme = 'test_theme';
$result = $Controller->render('index');
$this->assertPattern('/posts index themed view/', $result);
$this->assertPattern('/default test_theme layout/', $result);
App::build();
}

0 comments on commit a78bb20

Please sign in to comment.
You can’t perform that action at this time.