Removing getResponse, its not used and it doesn't serve much purpose.

This commit is contained in:
Mark Story 2011-07-19 22:51:49 -04:00 committed by mark_story
parent 4101388069
commit ec3de84c4e
4 changed files with 19 additions and 29 deletions
lib/Cake/Test/Case/Controller

View file

@ -52,12 +52,12 @@ class PagesControllerTest extends CakeTestCase {
$Pages->viewPath = 'Posts';
$Pages->display('index');
$this->assertPattern('/posts index/', $Pages->getResponse()->body());
$this->assertPattern('/posts index/', $Pages->response->body());
$this->assertEqual($Pages->viewVars['page'], 'index');
$Pages->viewPath = 'Themed';
$Pages->display('TestTheme', 'Posts', 'index');
$this->assertPattern('/posts index themed view/', $Pages->getResponse()->body());
$this->assertPattern('/posts index themed view/', $Pages->response->body());
$this->assertEqual($Pages->viewVars['page'], 'TestTheme');
$this->assertEqual($Pages->viewVars['subpage'], 'Posts');
}