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:
Anton Terekhov
2012-11-10 16:06:19 +04:00
parent 4f55333064
commit 4fa078d709
2 changed files with 20 additions and 11 deletions

View File

@ -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' );