Laravel - HTTP Tests - Assert Json Path

Assert that the response contains the given data at the specified path:

    $response->assertJsonPath($path, $expectedValue);

For example, if the JSON response returned by your application contains the following data:

        "user": {
            "name": "Steve Schoger"

You may assert that the name property of the user object matches a given value like so:

    $response->assertJsonPath('', 'Steve Schoger');