def METHOD_NAME(
    self, _get_fields
):
    _get_fields.return_value = [
        {"id": "text", "type": "text"},
        {"id": "number", "type": "number"},
        {"id": "nested", "type": "nested"},
        {"id": "date", "type": "date"},
        {"id": "text array", "type": "text[]"},
        {"id": "timestamp", "type": "timestamp"},
    ]
    connection = mock.MagicMock()
    context = {"connection": connection}
    resource_id = "resource_id"
    data_dict = {"resource_id": resource_id}
    db.create_indexes(context, data_dict)
    self._assert_created_index_on(
        "text", connection, resource_id, "english"
    )
    self._assert_created_index_on(
        "number", connection, resource_id, "english", cast=True
    )