Although this is far from optimal, I decided to use this code to check the situation:
$this->post(URL, PARAMS)->see('x');
X - , . .
a >
UPDATE:
, :
public function testCaseName()
{
$this->post(route('route.name'), [
'param1' => 1,
'param2' => 10,
], [
'headers_if_any' => 'value'
]);
$res_array = (array)json_decode($this->response->content());
$this->assertArrayHasKey('x', $res_array);
}