Fix unit test
This commit is contained in:
parent
db9765b4d5
commit
d2e8358da2
1 changed files with 2 additions and 1 deletions
|
@ -173,7 +173,8 @@ class ControllerTest extends \Test\TestCase {
|
||||||
public function testFormatDataResponseJSON() {
|
public function testFormatDataResponseJSON() {
|
||||||
$expectedHeaders = array(
|
$expectedHeaders = array(
|
||||||
'test' => 'something',
|
'test' => 'something',
|
||||||
'Cache-Control' => 'no-cache, must-revalidate'
|
'Cache-Control' => 'no-cache, must-revalidate',
|
||||||
|
'Content-Type' => 'application/json; charset=utf-8'
|
||||||
);
|
);
|
||||||
|
|
||||||
$response = $this->controller->customDataResponse(array('hi'));
|
$response = $this->controller->customDataResponse(array('hi'));
|
||||||
|
|
Loading…
Reference in a new issue