Steps to reproduce
- 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
Steps to reproduce
$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