We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d09c88 commit 46121eeCopy full SHA for 46121ee
tests/FailTest.php
@@ -109,7 +109,7 @@ public function testFailOutController()
109
'code' => ResponseCodeEnum::SYSTEM_ERROR,
110
'message' => ResponseCodeEnum::fromValue(ResponseCodeEnum::SYSTEM_ERROR)->description,
111
'data' => (object) [],
112
- 'error' => $this->convertExceptionToArray($httpException),
+ 'error' => config('app.debug', false) ? $this->convertExceptionToArray($httpException) : [],
113
], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
114
115
$this->assertJsonStringEqualsJsonString($expectedJson, $response->getContent());
0 commit comments