public static function assertFetchedToMany(
        $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)
            ->assertIdentifiersList($expected, '/data', $strict, $message);
    }
public static function assertFetchedToMany(
        $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)
            ->assertIdentifiersList($expected, '/data', $strict, $message);
    }
public static function assertFetchedToMany ( $ 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 ) -> assertIdentifiersList ( $ expected , '/data' , $ strict , $ message ) ; }
Assert that a to-many relationship was fetched.

@param $status
@param $contentType
@param $content
@param array $expected
@param bool $strict
@param string $message
@return Document
Assert that a to - many relationship was fetched .