src/HttpAssert.php
public static function assertFetchedToManyInOrder(
        $status,
        $contentType,
        $content,
        array $expected,
        bool $strict = true,
        string $message = ''
    ): Document
    {
        if (empty($expected)) {
            return self::assertFetchedNone($strict, $contentType, $content, $message);
        }

        return self::assertJsonApi($status, $contentType, $content, self::STATUS_OK, $message)
            ->assertIdentifiersListInOrder($expected, '/data', $strict, $message);
    }
public static function assertFetchedToManyInOrder(
        $status,
        $contentType,
        $content,
        array $expected,
        bool $strict = true,
        string $message = ''
    ): Document
    {
        if (empty($expected)) {
            return self::assertFetchedNone($strict, $contentType, $content, $message);
        }

        return self::assertJsonApi($status, $contentType, $content, self::STATUS_OK, $message)
            ->assertIdentifiersListInOrder($expected, '/data', $strict, $message);
    }
Assert that a to-many relationship was fetched in the expected order.

@param $status
@param $contentType
@param $content
@param array $expected
@param bool $strict
@param string $message
@return Document