src/Assert.php
public static function assertListContainsIdentifier(
        $document,
        string $type,
        string $id,
        string $pointer = '/data',
        string $message = ''
    ): void
    {
        $expected = compact('type', 'id');

        PHPUnitAssert::assertThat(
            $document,
            new IdentifierInList($expected, $pointer, true),
            $message
        );
    }
public static function assertListContainsIdentifier(
        $document,
        string $type,
        string $id,
        string $pointer = '/data',
        string $message = ''
    ): void
    {
        $expected = compact('type', 'id');

        PHPUnitAssert::assertThat(
            $document,
            new IdentifierInList($expected, $pointer, true),
            $message
        );
    }
Assert that the document has a list containing the expected resource identifier.

@param array|string $document
the JSON API document.
@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 void