Skip to content

Add an assertion that no resources are included #9

@jelhan

Description

@jelhan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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