Skip to content

Commit 02ec7b8

Browse files
authored
Update FeatureResponseTest.php
1 parent e4dd03a commit 02ec7b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/system/Test/FeatureResponseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function testGetJSON()
214214
public function testEmptyJSON()
215215
{
216216
$this->getFeatureResponse('<h1>Hello World</h1>');
217-
$this->response->setJSON('');
217+
$this->response->setJSON('', true);
218218
$config = new \Config\Format();
219219
$formatter = $config->getFormatter('application/json');
220220

@@ -225,7 +225,7 @@ public function testEmptyJSON()
225225
public function testFalseJSON()
226226
{
227227
$this->getFeatureResponse('<h1>Hello World</h1>');
228-
$this->response->setJSON(false);
228+
$this->response->setJSON(false, true);
229229
$config = new \Config\Format();
230230
$formatter = $config->getFormatter('application/json');
231231

@@ -236,7 +236,7 @@ public function testFalseJSON()
236236
public function testTrueJSON()
237237
{
238238
$this->getFeatureResponse('<h1>Hello World</h1>');
239-
$this->response->setJSON(true);
239+
$this->response->setJSON(true, true);
240240
$config = new \Config\Format();
241241
$formatter = $config->getFormatter('application/json');
242242

0 commit comments

Comments
 (0)