protected function seeJsonContains(array $data)
{
$actual = json_encode(array_sort_recursive(json_decode($this->response->getContent(), true)));
foreach (array_sort_recursive(json_decode(json_encode($data), true)) as $key => $value) {
$expected = $this->formatToExpectedJson($key, $value);
$this->assertTrue(str_contains($actual, $this->formatToExpectedJson($key, $value)), "Unable to find JSON fragment [{$expected}] within [{$actual}].");
}
return $this;
}