Skip to content

Commit

Permalink
Added RequestObject output in place of Controller:$output whicch no l…
Browse files Browse the repository at this point in the history
…onger exists.
  • Loading branch information
predominant committed Aug 28, 2010
1 parent 93b8004 commit c1209a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/controller/pages_controller.test.php
Expand Up @@ -60,12 +60,12 @@ function testDisplay() {

$Pages->viewPath = 'posts';
$Pages->display('index');
$this->assertPattern('/posts index/', $Pages->output);
$this->assertPattern('/posts index/', $Pages->getResponse()->body());
$this->assertEqual($Pages->viewVars['page'], 'index');

$Pages->viewPath = 'themed';
$Pages->display('test_theme', 'posts', 'index');
$this->assertPattern('/posts index themed view/', $Pages->output);
$this->assertPattern('/posts index themed view/', $Pages->getResponse()->body());
$this->assertEqual($Pages->viewVars['page'], 'test_theme');
$this->assertEqual($Pages->viewVars['subpage'], 'posts');
}
Expand Down

0 comments on commit c1209a1

Please sign in to comment.