Fixes for AjaxAction to send different header Content-type with $this->json_encode == true and $this->json_encode == false . This includes refactoring of $this->encode to $this->json_encode.
This commit is contained in:
@ -51,7 +51,7 @@ class AjaxActionTest extends Action_TestCase
|
||||
{
|
||||
|
||||
Config::set('DEBUG', false);
|
||||
Env::setParams(array('encode' => false));
|
||||
Env::setParams(array('json_encode' => false));
|
||||
$controller = FrontController::getInstance();
|
||||
$controller->setView('SomeView');
|
||||
$action = $this->getMockForAbstractClass('AjaxAction' );
|
||||
|
Reference in New Issue
Block a user