def METHOD_NAME(
    app_api_client,
    gift_card,
    gift_card_expiry_date,
    permission_manage_gift_card,
):
    # given
    gift_cards = [gift_card, gift_card_expiry_date]
    ids = [graphene.Node.to_global_id("GiftCard", card.pk) for card in gift_cards]
    variables = {"ids": ids}
    # when
    response = app_api_client.post_graphql(
        MUTATION_GIFT_CARD_BULK_DEACTIVATE,
        variables,
        permissions=(permission_manage_gift_card,),
    )
    # then
    content = get_graphql_content(response)
    data = content["data"]["giftCardBulkDeactivate"]
    assert (
        GiftCard.objects.filter(
            id__in=[card.id for card in gift_cards], is_active=False
        ).count()
        == 2
    )
    assert data["count"] == len(ids)
    events = GiftCardEvent.objects.all()
    assert events.count() == len(ids)
    assert {event.gift_card_id for event in events} == {card.id for card in gift_cards}
    assert {event.type for event in events} == {GiftCardEvents.DEACTIVATED}