mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing components tests
This commit is contained in:
parent
e09f825f8b
commit
5e635c74e2
1 changed files with 3 additions and 3 deletions
|
@ -387,7 +387,7 @@ class RequestHandlerComponentTest extends CakeTestCase {
|
|||
|
||||
$this->RequestHandler->renderAs($this->Controller, 'xml', array('attachment' => 'myfile.xml'));
|
||||
|
||||
$expected = 'request_handler_test' . DS . 'xml';
|
||||
$expected = 'RequestHandlerTest' . DS . 'xml';
|
||||
$this->assertEquals($expected, $this->Controller->viewPath);
|
||||
}
|
||||
|
||||
|
@ -445,11 +445,11 @@ class RequestHandlerComponentTest extends CakeTestCase {
|
|||
*/
|
||||
function testRenderAsCalledTwice() {
|
||||
$this->RequestHandler->renderAs($this->Controller, 'xml');
|
||||
$this->assertEqual($this->Controller->viewPath, 'request_handler_test' . DS . 'xml');
|
||||
$this->assertEqual($this->Controller->viewPath, 'RequestHandlerTest' . DS . 'xml');
|
||||
$this->assertEqual($this->Controller->layoutPath, 'xml');
|
||||
|
||||
$this->RequestHandler->renderAs($this->Controller, 'js');
|
||||
$this->assertEqual($this->Controller->viewPath, 'request_handler_test' . DS . 'js');
|
||||
$this->assertEqual($this->Controller->viewPath, 'RequestHandlerTest' . DS . 'js');
|
||||
$this->assertEqual($this->Controller->layoutPath, 'js');
|
||||
$this->assertTrue(in_array('Js', $this->Controller->helpers));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue