I got this result after running Unit Test.
Result:
1) Tests\Functional\Controllers\Api\UsersControllerTest::testUsersIndex
Unable to find JSON fragment
[[{"email":"FRoAff4@mail.com","id":"706"}]]
within
[{"data":[],"draw":0,"error":"Not Found","recordsFiltered":0,"recordsTotal":1}].
Failed asserting that false is true.
Code:
$this->seeJsonContains([
'id' => $user->id,
'email' => $user->email,
]);
If in parameter I add true
it works. I do not understand the task parameter is the logical value(true, false) here.
After:
$this->seeJsonContains([
'id' => $user->id,
'email' => $user->email,
], true);