src/Concerns/HasDocumentAssertions.php
public function assertListContainsIdentifier(
        string $type,
        string $id,
        string $pointer = '/data',
        string $message = ''
    ): self
    {
        Assert::assertListContainsIdentifier($this, $type, $id, $pointer, $message);

        return $this;
    }
public function assertListContainsIdentifier(
        string $type,
        string $id,
        string $pointer = '/data',
        string $message = ''
    ): self
    {
        Assert::assertListContainsIdentifier($this, $type, $id, $pointer, $message);

        return $this;
    }
Assert that the document has a list containing the expected resource identifier.

@param string $type
the expected resource object type.
@param string $id
the expected resource object id.
@param string $pointer
the JSON pointer to where the array is expected in the document.
@param string $message
@return $this