def METHOD_NAME(client, phase_factory):
    phase, module, project, idea = setup_phase(
        phase_factory, None, CollectFeedbackPhase
    )
    url = component.get_base_url(project)
    initiator = module.project.organisation.initiators.first()
    client.login(username=initiator.email, password="password")
    response = client.get(url)
    assert_template_response(response, "a4_candy_projects/project_participants.html")
    data = {
        "add_users": "test1@foo.bar,test2@foo.bar",
    }
    response = client.post(url, data)
    assert redirect_target(response) == "dashboard-{}-edit".format(component.identifier)
    assert ParticipantInvite.objects.get(email="test1@foo.bar")
    invite_pk = int(ParticipantInvite.objects.get(email="test1@foo.bar").pk)
    data = {"submit_action": "remove_invite", "invite_pk": invite_pk}
    response = client.post(url, data)
    assert redirect_target(response) == "dashboard-{}-edit".format(component.identifier)
    assert response.status_code == 302
    assert not ParticipantInvite.objects.filter(email="test1@foo.bar").exists()
    response = client.post(url, data)
    assert redirect_target(response) == "dashboard-{}-edit".format(component.identifier)
    assert response.status_code == 302