mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-03 21:33:32 +00:00
Removing getResponse, its not used and it doesn't serve much purpose.
This commit is contained in:
parent
4101388069
commit
ec3de84c4e
4 changed files with 19 additions and 29 deletions
lib/Cake/Test/Case/Controller
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue