def METHOD_NAME(
    cache_versions,
    user,
    default_category,
    sibling_category,
    child_category,
    other_category,
):
    request = Mock(
        cache_versions=cache_versions,
        user=user,
        user_acl={
            "visible_categories": [
                default_category.id,
                other_category.id,
            ],
        },
    )
    categories_map = get_categories_map(request)
    assert categories_map == [
        {
            "id": default_category.id,
            "name": default_category.name,
            "shortName": default_category.short_name,
            "color": default_category.color,
            "url": default_category.get_absolute_url(),
        },
        {
            "id": other_category.id,
            "name": other_category.name,
            "shortName": other_category.short_name,
            "color": other_category.color,
            "url": other_category.get_absolute_url(),
        },
    ]