Skip to content

Commit

Permalink
Fixing PagesController test case to use CakeRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 27, 2010
1 parent c1c8008 commit 5a6db36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/controller/pages_controller.test.php
Expand Up @@ -56,7 +56,7 @@ function testDisplay() {
App::build(array(
'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS, TEST_CAKE_CORE_INCLUDE_PATH . 'libs' . DS . 'view' . DS)
));
$Pages =& new PagesController();
$Pages = new PagesController(new CakeRequest(null, false));

$Pages->viewPath = 'posts';
$Pages->display('index');
Expand Down

0 comments on commit 5a6db36

Please sign in to comment.