Skip to content

Commit 8aa470d

Browse files
test: check content type for respondNoContent to make sure Debugbar is not included
1 parent 5f6fb6e commit 8aa470d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/system/API/ResponseTraitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ public function testNoContent()
331331

332332
$this->invoke($controller, 'respondNoContent', ['']);
333333

334+
$this->assertStringStartsWith('application/json', $this->response->getHeaderLine('Content-Type'));
334335
$this->assertSame('No Content', $this->response->getReason());
335336
$this->assertSame(204, $this->response->getStatusCode());
336337
}

0 commit comments

Comments
 (0)