Currently it's difficult to test that no resource are included. The only way I found so far is:
$response->getDocument()->assertNull('/included');
That's not very ergonomic especially compared to $response->assertIsIncluded(), $response->assertIncludes() and $response->assertIncluded().
I tried $response->assertIncluded([]) but that results in an error that expected [] does not equal null. $response->assertIncluded(null) is not allowed by argument type.
Currently it's difficult to test that no resource are included. The only way I found so far is:
That's not very ergonomic especially compared to
$response->assertIsIncluded(),$response->assertIncludes()and$response->assertIncluded().I tried
$response->assertIncluded([])but that results in an error that expected[]does not equalnull.$response->assertIncluded(null)is not allowed by argument type.