def METHOD_NAME(cls, metadatas):
    with patch('corehq.pillows.utils.get_user_type', return_value='CommCareUser'):
        for form_metadata in metadatas:
            form_metadata = form_metadata or TestFormMetadata()
            form_pair = make_es_ready_form(form_metadata)
            cls.forms.append(form_pair)
            form_adapter.index(form_pair.json_form)
    # have to refresh the index to make sure changes show up
    manager.index_refresh(form_adapter.index_name)