Skip to content

Feature testing with ->get or ->json doesn't pass include string to Manager #42

@jminkler

Description

@jminkler

Steps to reproduce

  1. When Testing endpoint, request a response with include
    $json = $this->actingAs($user, 'customer') ->json('GET','v2/customer', ['include'=>'cart']) ->assertJson([ 'data' => [ 'cart' => [ 'data' => [] ] ], ]);

Expected behaviour

Response should assert the 'cart' include, which works if I hit it with postman for example.

Actual behaviour

None of the includes, except the defaults are included

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions